X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=include%2Fecoli_strvec.h;h=2464a2bb2ce658fa947c3d4a68bfaa6caa3076a6;hb=70ebe6bd8740d8cb32cd0b0a21ca28a4fa74a2a5;hp=cabe6b2e60dff2c355a75a50fbfc4bbee74985fe;hpb=18d03456d96f7a086a2ccc82ce97fcf056848d90;p=protos%2Flibecoli.git diff --git a/include/ecoli_strvec.h b/include/ecoli_strvec.h index cabe6b2..2464a2b 100644 --- a/include/ecoli_strvec.h +++ b/include/ecoli_strvec.h @@ -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, @@ -166,7 +169,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 +186,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 +225,5 @@ void ec_strvec_sort(struct ec_strvec *strvec, void ec_strvec_dump(FILE *out, const struct ec_strvec *strvec); #endif + +/** } */