Home | History | Annotate | Download | only in util

Lines Matching refs:dict

23 NEOERR *dictCreate(dictCtx *dict, BOOL threaded, UINT32 root, UINT32 maxLevel, 
44 void dictDestroy(dictCtx dict);
47 * Description: Release all resources used by <dict>.
48 * Input: dict - dictionary to destroy
51 * MT-Level: Safe for unique <dict>.
54 BOOL dictRemove(dictCtx dict, const char *id);
57 * Description: Removes item identified by <id> from <dict>.
58 * Input: dict - dictionary to search in.
62 * MT-Level: Safe if <dict> thread-safe.
65 void *dictSearch(dictCtx dict, const char *id, void **plock);
68 * Description: Searches for <id> in <dict>, and returns value if
74 * Input: dict - dictionary to search in.
79 * MT-Level: Safe if <dict> thread-safe.
82 void *dictNext(dictCtx dict, char **id, void **plock);
93 * Input: dict - dictionary to iterate over.
100 * MT-Level: Safe if <dict> thread-safe.
103 void dictReleaseLock(dictCtx dict, void *lock);
109 * Input: dict - dictionary containing value to release.
113 * MT-Level: Safe if <dict> thread-safe.
116 NEOERR *dictSetValue(dictCtx dict, const char *id, void *value);
119 * Description: Updates the <id>/<value> pair into <dict>.
120 * If <id> is not in <dict>, it is created.
121 * Input: dict - dictionary to add pair to.
126 * MT-Level: Safe if <dict> thread-safe.
132 NEOERR *dictModifyValue(dictCtx dict, const char *id, dictNewValueCB new_cb,
137 * not in <dict>, calls <new> to obtain a new value.
138 * Input: dict - dictionary to add pair to.
146 * MT-Level: Safe if <dict> thread-safe.
149 void dictCleanup(dictCtx dict, dictCleanupFunc cleanup, void *rock);
152 * Description: Calls <cleanup> for every item in <dict>. If <cleanup>
153 * returns true, then item is removed from <dict>.
154 * Input: dict - dictionary to cleanup
159 * MT-Level: Safe if <dict> thread-safe.