1 #ifndef _OPENSYNC_CHANGE_H_ 2 #define _OPENSYNC_CHANGE_H_ 41 #endif //_OPENSYNC_CHANGE_H_ void osync_change_update(OSyncChange *source, OSyncChange *target)
Updated one change from another change.
OSyncChangeType osync_change_get_changetype(OSyncChange *change)
Gets the changetype of a change.
void osync_change_set_objformat(OSyncChange *change, OSyncObjFormat *format)
Sets the object format of a change.
void osync_change_free(OSyncChange *change)
Frees a change.
void osync_change_set_mappingid(OSyncChange *change, long long int mappingid)
Sets the mappingid of a change.
void osync_change_set_data(OSyncChange *change, char *data, int size, osync_bool has_data)
Sets the data of a change.
int osync_change_get_datasize(OSyncChange *change)
Gets the size of the data of a change.
void osync_changes_close(OSyncGroup *group)
Closes the change database.
void osync_change_free_data(OSyncChange *change)
Frees the data of a change.
void osync_change_set_uid(OSyncChange *change, const char *uid)
Sets the uid of a change.
long long int osync_change_get_mappingid(OSyncChange *entry)
Gets the mappingid of a change.
Represent a group of members that should be synchronized.
OSyncChange * osync_change_new(void)
Spawns a new change object.
void osync_change_set_engine_data(OSyncChange *change, void *engine_data)
Sets the data of the engine.
osync_bool osync_changes_load(OSyncGroup *group, OSyncChange ***changes, OSyncError **error)
This will load the changes from the database.
const char * osync_change_get_uid(OSyncChange *change)
Gets the uid of a change.
osync_bool osync_change_has_data(OSyncChange *change)
Returns wether the complete data already has been set.
A member of a group which represent a single device.
OSyncObjFormat * osync_change_get_objformat(OSyncChange *change)
Gets the object format of a change.
void osync_change_set_changetype(OSyncChange *change, OSyncChangeType type)
Sets the changetype of a change.
const char * osync_change_get_hash(OSyncChange *change)
Gets the hash of a change.
long long int osync_change_get_id(OSyncChange *change)
Gets the id of the change which is always unique.
void osync_change_set_conv_env(OSyncChange *change, OSyncFormatEnv *env)
Sets the conversion environment of a change.
void osync_change_set_objformat_string(OSyncChange *change, const char *name)
Sets the object format of a change from the name.
OSyncMember * osync_change_get_member(OSyncChange *change)
Gets the member which reported a change.
void osync_change_reset(OSyncChange *change)
Resets a change.
void osync_change_set_hash(OSyncChange *change, const char *hash)
Sets the hash of a change that is used to decide wether a change is new, modifed etc.
void osync_change_set_objtype(OSyncChange *change, OSyncObjType *type)
Sets the object type of a change.
void osync_change_set_member(OSyncChange *change, OSyncMember *member)
Sets the member of a change.
const char * osync_change_get_sourceobjtype(OSyncChange *change)
char * osync_change_get_printable(OSyncChange *change)
Returns a string describing a change object.
OSyncObjType * osync_change_get_objtype(OSyncChange *change)
Gets the object type of a change.
Represent a abstract object type (like "contact")
osync_bool osync_change_delete(OSyncChange *change, OSyncError **error)
This will delete a change from the database.
void osync_change_set_objtype_string(OSyncChange *change, const char *name)
Sets the object type of a change from the name.
OSyncChangeType
The changetypes of a change object.
void * osync_change_get_engine_data(OSyncChange *change)
Gets data that can be used privately by the engine.
char * osync_change_get_data(OSyncChange *change)
Gets the data of a change.
osync_bool osync_change_save(OSyncChange *change, osync_bool save_format, OSyncError **error)
This will save a change into the database.