Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a dict parameter to dictelm functions.
[simgrid.git] / src / xbt / dict_private.h
index b403501..a641b51 100644 (file)
@@ -33,10 +33,12 @@ typedef struct s_xbt_dictelm {
 } s_xbt_dictelm_t;
 
 typedef struct s_xbt_dict {
+  void_f_pvoid_t free_f;
   xbt_dictelm_t *table;
   int table_size;
   int count;
   int fill;
+  int homogeneous;
 } s_xbt_dict_t;
 
 typedef struct s_xbt_dict_cursor s_xbt_dict_cursor_t;
@@ -47,9 +49,9 @@ extern void *dict_elm_mallocator_new_f(void);
 #define dict_elm_mallocator_reset_f ((void_f_pvoid_t)NULL)
 
 /*####[ Function prototypes ]################################################*/
-xbt_dictelm_t xbt_dictelm_new(const char *key, int key_len,
+xbt_dictelm_t xbt_dictelm_new(xbt_dict_t dict, const char *key, int key_len,
                               unsigned int hash_code, void *content,
                               void_f_pvoid_t free_f);
-void xbt_dictelm_free(xbt_dictelm_t element);
+void xbt_dictelm_free(xbt_dict_t dict, xbt_dictelm_t element);
 
 #endif                          /* _XBT_DICT_PRIVATE_H_ */