/home/dcp1990/prog/fakedbfs/include/fakedbfs/plugins.h File Reference

Plugin stuff. More...

#include <fakedbfs/types.h>
#include <fakedbfs/fficl.h>

Go to the source code of this file.

Classes

struct  Plugin

Defines

#define PLUGIN_IS_FICL   0x1
#define PLUGIN_IS_PRIMITIVE   0x2

Functions

int fdbfs_plugins_init (fdbfs_t *f)
 Initialise plugin subsystem.
void fdbfs_plugins_set_path (fdbfs_t *f, const char *path)
 Set plugin path.
void fdbfs_free_plugin_list (struct Plugin *h)
 Destroy plugin list.
int fdbfs_plugin_set_cptr (fdbfs_t *f, const struct PluginInfo *pinf, void *dat)
 Set client data.
int fdbfs_plugin_get_cptr (fdbfs_t *f, const struct PluginInfo *pinf, void **dat)
 Get client data.


Detailed Description

Plugin stuff.


Define Documentation

#define PLUGIN_IS_FICL   0x1
 

#define PLUGIN_IS_PRIMITIVE   0x2
 


Function Documentation

void fdbfs_free_plugin_list struct Plugin h  ) 
 

Destroy plugin list.

Parameters:
h Head of list.

int fdbfs_plugin_get_cptr fdbfs_t f,
const struct PluginInfo pinf,
void **  dat
 

Get client data.

Retrieves value set with fdbfs_plugin_set_cptr().

Parameters:
f fakedbfs instance to operate on.
pinf PluginInfo structure identifying this plugin;; must be the same pointer that was registered with.
[out] dat The data to set to.

int fdbfs_plugin_set_cptr fdbfs_t f,
const struct PluginInfo pinf,
void *  dat
 

Set client data.

Sets an internal pointer to an arbitrary value for later retrieval.

Parameters:
f fakedbfs instance to operate on.
pinf PluginInfo structure identifying this plugin;; must be the same pointer that was registered with.
dat Where to store the data.

int fdbfs_plugins_init fdbfs_t f  ) 
 

Initialise plugin subsystem.

Parameters:
f Instance of fakedbfs.
Returns:
0 on error.

void fdbfs_plugins_set_path fdbfs_t f,
const char *  path
 

Set plugin path.

fdbfs_plugins_set_path() sets the path that will be searched for plugins.

Parameters:
f The instance of fakedbfs on which to operate.
path The new path.


Generated on Wed Apr 19 16:26:23 2006 for fakedbfs by  doxygen 1.4.6