api documentation for ec_parse
[protos/libecoli.git] / include / ecoli_strvec.h
index cabe6b2..ee793e7 100644 (file)
@@ -3,7 +3,10 @@
  */
 
 /**
- * Vectors of strings.
+ * @defgroup strvec String vectors
+ * @{
+ *
+ * @brief Helpers for strings vectors manipulation.
  *
  * The ec_strvec API provide helpers to manipulate string vectors.
  * When duplicating vectors, the strings are not duplicated in memory,
  */
 struct ec_strvec *ec_strvec(void);
 
-#ifndef EC_COUNT_OF
-#define EC_COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / \
-               ((size_t)(!(sizeof(x) % sizeof(0[x])))))
-#endif
-
 /**
  * Allocate a new string vector
  *
@@ -166,7 +164,7 @@ const char *ec_strvec_val(const struct ec_strvec *strvec, size_t idx);
  *   The read-only attributes (dictionnary) of the string at specified
  *   index, or NULL if there is no attribute.
  */
-const struct ec_keyval *ec_strvec_get_attrs(const struct ec_strvec *strvec,
+const struct ec_dict *ec_strvec_get_attrs(const struct ec_strvec *strvec,
        size_t idx);
 
 /**
@@ -183,7 +181,7 @@ const struct ec_keyval *ec_strvec_get_attrs(const struct ec_strvec *strvec,
  *   are freed and must not be used by the caller.
  */
 int ec_strvec_set_attrs(struct ec_strvec *strvec, size_t idx,
-                       struct ec_keyval *attrs);
+                       struct ec_dict *attrs);
 
 /**
  * Compare two string vectors
@@ -222,3 +220,5 @@ void ec_strvec_sort(struct ec_strvec *strvec,
 void ec_strvec_dump(FILE *out, const struct ec_strvec *strvec);
 
 #endif
+
+/** } */