X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3d0d626e19a7b79320e7d922c9c1dcf122076cea..102ef4964f88946b246ed7bfb81b57ec2156de1d:/include/xbt/dict.h diff --git a/include/xbt/dict.h b/include/xbt/dict.h index 3ec4711410..a209155839 100644 --- a/include/xbt/dict.h +++ b/include/xbt/dict.h @@ -21,7 +21,7 @@ typedef struct gras_dict_ gras_dict_t; /*####[ Simple dict functions ]#############################################*/ -void gras_dict_new(gras_dict_t **dict); +gras_dict_t *gras_dict_new(void); void gras_dict_free(gras_dict_t **dict); @@ -117,9 +117,8 @@ gras_error_t gras_multidict_remove_ext(gras_dict_t *head, /*###########################################################################*/ typedef struct gras_dict_cursor_ gras_dict_cursor_t; /* creator/destructor */ -void gras_dict_cursor_new(const gras_dict_t *head, - /*OUT*/gras_dict_cursor_t **cursor); -void gras_dict_cursor_free(gras_dict_cursor_t *cursor); +gras_dict_cursor_t *gras_dict_cursor_new(const gras_dict_t *head); +void gras_dict_cursor_free(gras_dict_cursor_t *cursor); /* back to first element it is not enough to reinit the cache after an add/remove in cache*/ @@ -131,9 +130,8 @@ gras_error_t gras_dict_cursor_get_key (gras_dict_cursor_t *cursor, gras_error_t gras_dict_cursor_get_data (gras_dict_cursor_t *cursor, /*OUT*/void **data); - -void gras_dict_cursor_first (const gras_dict_t *dict, - gras_dict_cursor_t **cursor); +void gras_dict_cursor_first (const gras_dict_t *dict, + gras_dict_cursor_t **cursor); void gras_dict_cursor_step (gras_dict_cursor_t *cursor); int gras_dict_cursor_get_or_free (gras_dict_cursor_t **cursor, char **key,