GFAL2  2.9.1
Data Structures | Macros | Typedefs | Functions
gfal_common_plugin_interface.h File Reference
#include <glib.h>
#include <common/gfal_prototypes.h>
#include <common/gfal_constants.h>
#include <global/gfal_global.h>
#include <transfer/gfal_transfer_types.h>
#include <sys/stat.h>

Data Structures

struct  _gfal_plugin_interface
 

Macros

#define _GFAL_PLUGIN_INTERFACE_
 
#define GFAL2_PLUGIN_VERSIONED(plugin, version)   plugin "-" version
 
#define GFAL_PLUGIN_PRIORITY_DATA   0;
 
#define GFAL_PLUGIN_PRIORITY_CATALOG   100;
 
#define GFAL_PLUGIN_PRIORITY_CACHE   200;
 

Typedefs

typedef gfal_plugin_interface *(* gfal_plugin_init_t) (gfal2_context_t handle, GError **err)
 

Functions

int gfal2_register_plugin (gfal2_context_t handle, const gfal_plugin_interface *ifce, GError **error)
 

Detailed Description

Author
Devresse Adrien plugin specific related API

Macro Definition Documentation

#define GFAL_PLUGIN_PRIORITY_DATA   0;

classical data access plugin

Typedef Documentation

typedef gfal_plugin_interface*(* gfal_plugin_init_t) (gfal2_context_t handle, GError **err)

Prototype of the plugins entry point

return gfal_plugin_interface must be allocated with \ĂȘef gfal_plugin_interface_new

Parameters
handle: gfal2_context_t of the current call
err: Error report in case of fatal error while the plugin load.

Function Documentation

int gfal2_register_plugin ( gfal2_context_t  handle,
const gfal_plugin_interface *  ifce,
GError **  error 
)

Trigger plugin instantiation from the client code The passed interface is copied, so you can, if needed, free it after the call