53 typedef osync_bool (* OSyncFormatCommitFn) (OSyncContext *,
OSyncChange *);
54 typedef osync_bool (* OSyncFormatAccessFn) (OSyncContext *,
OSyncChange *);
55 typedef void (* OSyncFormatCommittedAllFn) (OSyncContext *);
56 typedef void (* OSyncFormatReadFn) (OSyncContext *,
OSyncChange *);
57 typedef void (* OSyncFormatBatchCommitFn) (OSyncContext *, OSyncContext **,
OSyncChange **);
126 OSyncPlugin *osync_plugin_from_name(OSyncEnv *osinfo,
const char *name);
void osync_plugin_free(OSyncPlugin *plugin)
Used to free a plugin.
unsigned int get_data_timeout
void osync_plugin_set_access_objformat(OSyncPluginInfo *info, const char *objtypestr, const char *formatstr, OSyncFormatAccessFn access_fn)
Sets the access function of a format.
OSyncPluginTimeouts osync_plugin_get_timeouts(OSyncPlugin *plugin)
Returns the timeouts of the plugin.
OSyncPluginInfo * osync_plugin_new_info(OSyncEnv *env)
Registers a new plugin.
osync_bool osync_module_load(OSyncEnv *env, const char *path, OSyncError **error)
dlopen()s a format plugin
void osync_plugin_set_commit_objformat(OSyncPluginInfo *info, const char *objtypestr, const char *formatstr, OSyncFormatCommitFn commit_change)
Sets the commit function of a format.
OSyncPlugin * osync_plugin_new(OSyncEnv *env)
This will create a new plugin struct.
Represent a synchronzation plugin.
osync_bool(* store_config)(char *, const char *, int)
struct OSyncPluginTimeouts OSyncPluginTimeouts
The timeouts for the asynchronous functions of a plugin.
void(* disconnect)(OSyncContext *)
unsigned int read_change_timeout
void(* connect)(OSyncContext *)
void * osync_plugin_get_function(OSyncPlugin *plugin, const char *name, OSyncError **error)
Used to look up a symbol on the plugin.
void osync_plugin_accept_objtype(OSyncPluginInfo *info, const char *objtypestr)
Tells opensync that the plugin can accepts this object.
void * osync_plugin_get_plugin_data(OSyncPlugin *plugin)
Returns the plugin_info data, set by the plugin.
unsigned int connect_timeout
void osync_plugin_set_committed_all_objformat(OSyncPluginInfo *info, const char *objtypestr, const char *formatstr, OSyncFormatCommittedAllFn committed_all)
Sets the committed_all function of a format.
A member of a group which represent a single device.
const char * osync_plugin_get_name(OSyncPlugin *plugin)
Returns the name of the loaded plugin.
unsigned int sync_done_timeout
osync_bool osync_module_load_dir(OSyncEnv *env, const char *path, osync_bool must_exist, OSyncError **oserror)
Loads the modules from a given directory.
void osync_plugin_set_read_objformat(OSyncPluginInfo *info, const char *objtypestr, const char *formatstr, OSyncFormatReadFn read_fn)
Sets the read function of a format.
unsigned int disconnect_timeout
Gives information about a plugin.
osync_bool(* get_config)(char *, char **, int *)
osync_bool(* is_available)(OSyncError **)
unsigned int get_changeinfo_timeout
const char * osync_plugin_get_description(OSyncPlugin *plugin)
Returns the description of the plugin.
const char * osync_plugin_get_path(OSyncPlugin *plugin)
Get full path for plugin module.
struct OSyncFormatFunctions OSyncFormatFunctions
The functions for accessing formats on a plugin.
OSyncConfigurationTypes config_type
void osync_plugin_accept_objformat(OSyncPluginInfo *info, const char *objtypestr, const char *formatstr, const char *extension)
Tells opensync that the plugin can accepts this format for the given object.
struct OSyncPluginInfo OSyncPluginInfo
Gives information about a plugin.
void(* get_changeinfo)(OSyncContext *)
void osync_plugin_set_batch_commit_objformat(OSyncPluginInfo *info, const char *objtypestr, const char *formatstr, OSyncFormatBatchCommitFn batch)
Sets the batch_commit function of a format.
struct OSyncPluginFunctions OSyncPluginFunctions
The functions that can be called on a plugin.
The functions that can be called on a plugin.
OSyncPluginFunctions functions
OSyncPluginTimeouts timeouts
void(* sync_done)(OSyncContext *ctx)
unsigned int commit_timeout
OSyncConfigurationTypes
Gives information about wether the plugin has to be configured or not.
void(* get_data)(OSyncContext *, OSyncChange *)
The timeouts for the asynchronous functions of a plugin.
const char * osync_plugin_get_longname(OSyncPlugin *plugin)
Returns the long name of the loaded plugin.