*/
/**
- * 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
*
* 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);
/**
* 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
void ec_strvec_dump(FILE *out, const struct ec_strvec *strvec);
#endif
+
+/** } */