/home/dcp1990/prog/fakedbfs/libfakedbfs/plugins.c File Reference

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <sqlite3.h>
#include <fakedbfs/fdbfsconfig.h>
#include <fakedbfs/fakedbfs.h>
#include <fakedbfs/plugins.h>
#include <fakedbfs/debug.h>

Defines

#define LIBERR(sym)

Functions

int fdbfs_plugins_init (fdbfs_t *f)
 Initialise plugin subsystem.
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.
void fdbfs_plugins_set_path (fdbfs_t *f, const char *path)
 Set plugin path.

Define Documentation

#define LIBERR sym   ) 
 

Value:

{ \
                fdbfs_debug_info(f, error, "probe_plugin: symbol referece %s failed in %s: %s", sym, fpth, dlerror()); \
                free(fpth); \
                free(n); \
                dlclose(libhandle); \
                return last; \
        }


Function Documentation

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