OpenSync  0.22
opensync_changecmds.h
1 #ifndef _OPENSYNC_CHANGECMDS_H_
2 #define _OPENSYNC_CHANGECMDS_H_
3 
4 osync_bool osync_change_duplicate(OSyncChange *change);
7 time_t osync_change_get_revision(OSyncChange *change, OSyncError **error);
8 
13 
14 osync_bool osync_change_convert(OSyncFormatEnv *env, OSyncChange *change, OSyncObjFormat *fmt, OSyncError **error);
15 osync_bool osync_change_convert_fmtname(OSyncFormatEnv *env, OSyncChange *change, const char *fmtname, OSyncError **error);
16 osync_bool osync_change_convert_fmtnames(OSyncFormatEnv *env, OSyncChange *change, const char **names, OSyncError **error);
17 osync_bool osync_change_convert_to_common(OSyncChange *change, OSyncError **error);
18 osync_bool osync_change_convert_extension(OSyncFormatEnv *env, OSyncChange *change, OSyncObjFormat *targetformat, const char *extension_name, OSyncError **error);
19 osync_bool osync_change_convert_member_sink(OSyncFormatEnv *env, OSyncChange *change, OSyncMember *memb, OSyncError **error);
20 
21 osync_bool osync_change_copy_data(OSyncChange *source, OSyncChange *target, OSyncError **error);
23 
24 #endif //_OPENSYNC_CHANGECMDS_H_
osync_bool osync_change_duplicate(OSyncChange *change)
Duplicates the uid of the change.
OSyncObjFormat * osync_change_detect_objformat(OSyncFormatEnv *env, OSyncChange *change, OSyncError **error)
Tries to detect the format of the given change.
Represent an error.
osync_bool osync_change_convert(OSyncFormatEnv *env, OSyncChange *change, OSyncObjFormat *fmt, OSyncError **error)
Convert a change to a specific format.
OSyncObjType * osync_change_detect_objtype_full(OSyncFormatEnv *env, OSyncChange *change, OSyncError **error)
Tries to detect the encapsulated object type of the given change.
OSyncChange * osync_change_copy(OSyncChange *source, OSyncError **error)
Makes a exact copy of change.
OSyncObjFormat * osync_change_detect_objformat_full(OSyncFormatEnv *env, OSyncChange *change, OSyncError **error)
Tries to detect the encapsulated format of the given change.
OSyncObjType * osync_change_detect_objtype(OSyncFormatEnv *env, OSyncChange *change, OSyncError **error)
Tries to detect the object type of the given change.
osync_bool osync_change_convert_fmtnames(OSyncFormatEnv *env, OSyncChange *change, const char **names, OSyncError **error)
Convert a change to some formats.
A member of a group which represent a single device.
osync_bool osync_change_copy_data(OSyncChange *source, OSyncChange *target, OSyncError **error)
Copies the data from one change to another change.
osync_bool osync_change_convert_fmtname(OSyncFormatEnv *env, OSyncChange *change, const char *fmtname, OSyncError **error)
Convert a change to a specific format with the given name.
osync_bool osync_change_convert_extension(OSyncFormatEnv *env, OSyncChange *change, OSyncObjFormat *targetformat, const char *extension_name, OSyncError **error)
Convert a change to a specific format with a specific extension.
A change object.
time_t osync_change_get_revision(OSyncChange *change, OSyncError **error)
Returns the revision of the object.
OSyncConvCmpResult
The possible returns of a change comparison.
osync_bool osync_change_convert_to_common(OSyncChange *change, OSyncError **error)
Convert a change to the specified common format.
osync_bool osync_change_convert_member_sink(OSyncFormatEnv *env, OSyncChange *change, OSyncMember *memb, OSyncError **error)
Convert a change to the nearest sink on a member.
Represent a abstract object type (like "contact")
OSyncConvCmpResult osync_change_compare(OSyncChange *leftchange, OSyncChange *rightchange)
Compares 2 changes.
Represent a format for a object type.
The environment used for conversions.
OSyncConvCmpResult osync_change_compare_data(OSyncChange *leftchange, OSyncChange *rightchange)
Compares the data of 2 changes.