X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flibcollectdclient%2Fclient.h;h=36b1d4d28a3debe925c8074d06bf1285c2c7c9ea;hb=cc2df6a337871d01d8e84e7102b61a207d433f9c;hp=b0d092d0d8c9ab3534249242279a1c43f43f94fd;hpb=973b70c411688212c081f5e90b89bd657785b81c;p=collectd.git diff --git a/src/libcollectdclient/client.h b/src/libcollectdclient/client.h index b0d092d0..36b1d4d2 100644 --- a/src/libcollectdclient/client.h +++ b/src/libcollectdclient/client.h @@ -27,7 +27,9 @@ /* * Includes (for data types) */ -#include +#if HAVE_STDINT_H +# include +#endif #include #include @@ -82,7 +84,7 @@ struct lcc_value_list_s lcc_identifier_t identifier; }; typedef struct lcc_value_list_s lcc_value_list_t; -#define LCC_VALUE_LIST_INIT { NULL, 0, 0, 0, LCC_IDENTIFIER_INIT } +#define LCC_VALUE_LIST_INIT { NULL, NULL, 0, 0, 0, LCC_IDENTIFIER_INIT } struct lcc_connection_s; typedef struct lcc_connection_s lcc_connection_t; @@ -114,6 +116,9 @@ int lcc_identifier_to_string (lcc_connection_t *c, int lcc_string_to_identifier (lcc_connection_t *c, lcc_identifier_t *ident, const char *string); +int lcc_sort_identifiers (lcc_connection_t *c, + lcc_identifier_t *idents, size_t idents_num); + LCC_END_DECLS /* vim: set sw=2 sts=2 et : */