OpenSync
0.22
|
Used to convert, compare and detect changes. More...
Functions | |
OSyncFormatEnv * | osync_conv_env_new (OSyncEnv *env) |
This will create a new opensync format environment. More... | |
void | osync_conv_env_free (OSyncFormatEnv *env) |
Frees a osync format environment. More... | |
osync_bool | osync_conv_set_common_format (OSyncFormatEnv *env, const char *objtypestr, const char *formatname, OSyncError **error) |
Sets the common format for a object type. More... | |
OSyncObjType * | osync_conv_find_objtype (OSyncFormatEnv *env, const char *name) |
Finds the object type with the given name. More... | |
int | osync_conv_num_objtypes (OSyncFormatEnv *env) |
Returns the number of available object types. More... | |
OSyncObjType * | osync_conv_nth_objtype (OSyncFormatEnv *env, int nth) |
Gets the nth object type. More... | |
OSyncObjFormat * | osync_conv_find_objformat (OSyncFormatEnv *env, const char *name) |
Finds the object format with the given name. More... | |
int | osync_conv_num_objformats (OSyncObjType *type) |
Returns the number of available object formats. More... | |
OSyncObjFormat * | osync_conv_nth_objformat (OSyncObjType *type, int nth) |
Gets the nth object format. More... | |
OSyncFormatConverter * | osync_conv_find_converter (OSyncFormatEnv *env, const char *sourcename, const char *targetname) |
Finds the converter with the given source and target format. More... | |
OSyncFormatExtension * | osync_conv_find_extension (OSyncFormatEnv *env, OSyncObjFormat *from_format, OSyncObjFormat *to_format, const char *extension_name) |
Finds the extension that will be invoked when going from the given source to the target format with the given name. More... | |
const char * | osync_objtype_get_name (OSyncObjType *type) |
Returns the name of a object type. More... | |
const char * | osync_objformat_get_name (OSyncObjFormat *format) |
Returns the name of a object format. More... | |
OSyncObjType * | osync_objformat_get_objtype (OSyncObjFormat *format) |
Returns the object type of a format. More... | |
Used to convert, compare and detect changes.
OSyncFormatEnv* osync_conv_env_new | ( | OSyncEnv * | env | ) |
This will create a new opensync format environment.
The environment will hold all information about plugins, formats etc
Definition at line 568 of file opensync_convert.c.
Referenced by osync_group_new().
void osync_conv_env_free | ( | OSyncFormatEnv * | env | ) |
Frees a osync format environment.
Frees a osync format environment and all resources.
env | Pointer to the environment to free |
Definition at line 685 of file opensync_convert.c.
Referenced by osync_group_free().
osync_bool osync_conv_set_common_format | ( | OSyncFormatEnv * | env, |
const char * | objtypestr, | ||
const char * | formatname, | ||
OSyncError ** | error | ||
) |
Sets the common format for a object type.
env | Pointer to the environment |
objtypestr | The object type name for which to set the common format |
formatname | The name of the format |
error | Pointer to a error struct |
Definition at line 703 of file opensync_convert.c.
Referenced by osync_conv_env_new().
OSyncObjType* osync_conv_find_objtype | ( | OSyncFormatEnv * | env, |
const char * | name | ||
) |
Finds the object type with the given name.
env | Pointer to the environment |
name | Name of the object type to find |
Definition at line 726 of file opensync_convert.c.
Referenced by osync_change_get_objtype(), osync_conv_env_new(), osync_conv_set_common_format(), osync_group_get_slow_sync(), osync_group_reset_slow_sync(), osync_group_set_slow_sync(), and osync_member_make_random_data().
int osync_conv_num_objtypes | ( | OSyncFormatEnv * | env | ) |
Returns the number of available object types.
env | Pointer to the environment |
Definition at line 747 of file opensync_convert.c.
OSyncObjType* osync_conv_nth_objtype | ( | OSyncFormatEnv * | env, |
int | nth | ||
) |
Gets the nth object type.
env | Pointer to the environment |
nth | The number |
Definition at line 760 of file opensync_convert.c.
OSyncObjFormat* osync_conv_find_objformat | ( | OSyncFormatEnv * | env, |
const char * | name | ||
) |
Finds the object format with the given name.
env | Pointer to the environment |
name | Name of the format type to find |
Definition at line 773 of file opensync_convert.c.
Referenced by osync_change_get_initial_objformat(), osync_change_get_objformat(), osync_conv_env_new(), osync_conv_find_converter(), and osync_conv_set_common_format().
int osync_conv_num_objformats | ( | OSyncObjType * | type | ) |
Returns the number of available object formats.
type | The object type for whih to lookup the formats |
Definition at line 793 of file opensync_convert.c.
OSyncObjFormat* osync_conv_nth_objformat | ( | OSyncObjType * | type, |
int | nth | ||
) |
Gets the nth object format.
type | The object for which to get the nth format |
nth | The number |
Definition at line 806 of file opensync_convert.c.
OSyncFormatConverter* osync_conv_find_converter | ( | OSyncFormatEnv * | env, |
const char * | sourcename, | ||
const char * | targetname | ||
) |
Finds the converter with the given source and target format.
env | Pointer to the environment |
sourcename | Name of the source format |
targetname | Name of the target format |
Definition at line 820 of file opensync_convert.c.
Referenced by osync_conv_env_new().
OSyncFormatExtension* osync_conv_find_extension | ( | OSyncFormatEnv * | env, |
OSyncObjFormat * | from_format, | ||
OSyncObjFormat * | to_format, | ||
const char * | extension_name | ||
) |
Finds the extension that will be invoked when going from the given source to the target format with the given name.
env | Pointer to the environment |
from_format | From Format |
to_format | To Format |
extension_name | The name of the extension to search |
Definition at line 845 of file opensync_convert.c.
Referenced by get_next_vertice_neighbour().
const char* osync_objtype_get_name | ( | OSyncObjType * | type | ) |
Returns the name of a object type.
type | The object type |
Definition at line 866 of file opensync_convert.c.
Referenced by _new_change_receiver(), and osync_hashtable_detect_change().
const char* osync_objformat_get_name | ( | OSyncObjFormat * | format | ) |
Returns the name of a object format.
format | The object format |
Definition at line 878 of file opensync_convert.c.
Referenced by _new_change_receiver().
OSyncObjType* osync_objformat_get_objtype | ( | OSyncObjFormat * | format | ) |
Returns the object type of a format.
format | The object format |
Definition at line 890 of file opensync_convert.c.
Referenced by osync_member_has_read_function().