factorize dict and htable
[protos/libecoli.git] / include / ecoli_htable.h
index 6729d91..0bed676 100644 (file)
@@ -178,9 +178,21 @@ ec_htable_iter_next(struct ec_htable_elt_ref *iter);
  *   The current element key, or NULL if the iterator points to an
  *   invalid element.
  */
-const char *
+const void *
 ec_htable_iter_get_key(const struct ec_htable_elt_ref *iter);
 
+/**
+ * Get the key length of the current element.
+ *
+ * @param iter
+ *   The hash table iterator.
+ * @return
+ *   The current element key length, or 0 if the iterator points to an
+ *   invalid element.
+ */
+size_t
+ec_htable_iter_get_key_len(const struct ec_htable_elt_ref *iter);
+
 /**
  * Get the value of the current element.
  *
@@ -193,5 +205,4 @@ ec_htable_iter_get_key(const struct ec_htable_elt_ref *iter);
 void *
 ec_htable_iter_get_val(const struct ec_htable_elt_ref *iter);
 
-
 #endif