OSyncPluginFunctions Struct Reference
[OpenSync Plugin]

The functions that can be called on a plugin. More...

#include <opensync_plugin.h>


Data Fields

osync_bool(* get_config )(char *, char **, int *)
osync_bool(* store_config )(char *, const char *, int)
osync_bool(* is_available )(OSyncError **)
void *(* initialize )(OSyncMember *, OSyncError **)
void(* finalize )(void *)
void(* connect )(OSyncContext *)
void(* sync_done )(OSyncContext *ctx)
void(* disconnect )(OSyncContext *)
void(* get_changeinfo )(OSyncContext *)
void(* get_data )(OSyncContext *, OSyncChange *)


Detailed Description

The functions that can be called on a plugin.

Definition at line 5 of file opensync_plugin.h.


Field Documentation

osync_bool(* OSyncPluginFunctions::get_config)(char *, char **, int *)

The function that gets a configuration file for this plugin (optional)

osync_bool(* OSyncPluginFunctions::store_config)(char *, const char *, int)

The function that stores the configuration file for this plugin (optional)

Referenced by osync_member_save().

A function to check if the backend is available. (optional)

The function to initialize the plugin.

Referenced by osync_member_initialize().

The function to finalize the plugin. The input will be the output of the initialize function

Referenced by osync_member_finalize().

void(* OSyncPluginFunctions::connect)(OSyncContext *)

Make a connection to your device here

Referenced by osync_member_connect().

void(* OSyncPluginFunctions::sync_done)(OSyncContext *ctx)

This function gets called if the sync was successfull (Optional)

Referenced by osync_member_sync_done().

void(* OSyncPluginFunctions::disconnect)(OSyncContext *)

Disconnect from the device

Referenced by osync_member_disconnect().

void(* OSyncPluginFunctions::get_changeinfo)(OSyncContext *)

Get all available changes here.

Referenced by osync_member_get_changeinfo().

void(* OSyncPluginFunctions::get_data)(OSyncContext *, OSyncChange *)

Get the data for a change here (Optional)

Referenced by osync_member_get_change_data().


The documentation for this struct was generated from the following file:

Generated on Sun Aug 9 05:47:46 2009 for OpenSync by  doxygen 1.5.9