Add functions json_object_iter_{at,set,set_new}

This commit is contained in:
Petri Lehtinen
2010-02-01 21:01:24 +02:00
parent 72e3948438
commit b495b96547
7 changed files with 134 additions and 0 deletions

View File

@@ -160,6 +160,17 @@ void hashtable_clear(hashtable_t *hashtable);
*/
void *hashtable_iter(hashtable_t *hashtable);
/**
* hashtable_iter - Return an iterator at a specific key
*
* @hashtable: The hashtable object
* @key: The key that the iterator should point to
*
* Like hashtable_iter() but returns an iterator pointing to a
* specific key.
*/
void *hashtable_iter_at(hashtable_t *hashtable, const void *key);
/**
* hashtable_iter_next - Advance an iterator
*
@@ -185,4 +196,12 @@ void *hashtable_iter_key(void *iter);
*/
void *hashtable_iter_value(void *iter);
/**
* hashtable_iter_set - Set the value pointed by an iterator
*
* @iter: The iterator
* @value: The value to set
*/
void hashtable_iter_set(hashtable_t *hashtable, void *iter, void *value);
#endif