void osync_hashtable_get_hash(OSyncHashTable *table, OSyncChange *chg)
Get the hash value from the hash table.
void osync_hashtable_free(OSyncHashTable *table)
Frees a hashtable.
void osync_hashtable_report_deleted(OSyncHashTable *table, OSyncContext *context, const char *objtype)
Report all deleted items.
osync_bool osync_hashtable_nth_entry(OSyncHashTable *table, int i, char **uid, char **hash)
Gets the nth entry from the table.
osync_bool osync_hashtable_load(OSyncHashTable *table, OSyncMember *member, OSyncError **error)
Loads a hashtable from disk.
void osync_hashtable_update_hash(OSyncHashTable *table, OSyncChange *change)
Update the hash for a entry.
OSyncChangeType osync_hashtable_get_changetype(OSyncHashTable *table, const char *uid, const char *objtype, const char *hash)
Gets the changetype for a given uid and hash.
A member of a group which represent a single device.
OSyncHashTable * osync_hashtable_new(void)
Creates a new hashtable.
void osync_hashtable_forget(OSyncHashTable *table)
Makes a hashtable forget.
char ** osync_hashtable_get_deleted(OSyncHashTable *table, const char *objtype)
Get the uid of all deleted items.
osync_bool osync_hashtable_detect_change(OSyncHashTable *table, OSyncChange *change)
Gets the changetype of an object and sets it directly.
void osync_hashtable_close(OSyncHashTable *table)
Closes a previously loaded table.
void osync_hashtable_set_slow_sync(OSyncHashTable *table, const char *objtype)
Resets the hashtable for a given object type.
void osync_hashtable_report(OSyncHashTable *table, const char *uid)
Report a item.
int osync_hashtable_num_entries(OSyncHashTable *table)
Returns the number of entries in this hashtable.
OSyncChangeType
The changetypes of a change object.
Represent a hashtable which can be used to check if changes have been modifed or deleted.