plugins/xor.c File Reference

This file serves as both a sample plugin for datablocks in the system, and as a test plugin for the regression testing. More...

#include <stdio.h>
#include "mysqlfs-plugin.h"

Include dependency graph for xor.c:

Go to the source code of this file.

Functions

mysqlfs_pluginmysqlfs_init (unsigned char version_major, unsigned char version_minor, unsigned char version_point)
 feed back an entrypoint array.

Variables

mysqlfs_plugin xor_entry


Detailed Description

This file serves as both a sample plugin for datablocks in the system, and as a test plugin for the regression testing.

This strategy ensures that examples actually work.

Definition in file xor.c.


Function Documentation

mysqlfs_plugin* mysqlfs_init ( unsigned char  version_major,
unsigned char  version_minor,
unsigned char  version_point 
)

feed back an entrypoint array.

This is done as a Factory pattern, but all results are the same so we ignore the version data.

Returns:
entrypoint array: a pointer to a mysqlfs_plugin
Parameters:
version_major version of the mysqlfs code
version_minor version of the mysqlfs code
version_point version of the mysqlfs code

Definition at line 87 of file xor.c.

References xor_entry.


Variable Documentation

mysqlfs_plugin xor_entry

Initial value:

{
    .identity = dummy_identity,
    .setblocksize = dummy_setblocksize,
    .read = dummy_readwrite,
    .write = dummy_readwrite
}

Definition at line 69 of file xor.c.

Referenced by mysqlfs_init().


Generated on Sun Jul 12 20:25:27 2009 for mysqlfs by  doxygen 1.4.7