X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flibcollectdclient%2Fclient.h;h=36b1d4d28a3debe925c8074d06bf1285c2c7c9ea;hb=3427c2e266c04d67848bda913caa730a395c7295;hp=d5371fb2a20f8f6a1c80b3401fefb0b69f02aeab;hpb=de0fdb208de123fe753c5fcf03533833777a5b4a;p=collectd.git diff --git a/src/libcollectdclient/client.h b/src/libcollectdclient/client.h index d5371fb2..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 @@ -42,16 +44,22 @@ */ #define LCC_TYPE_COUNTER 0 #define LCC_TYPE_GAUGE 1 +#define LCC_TYPE_DERIVE 2 +#define LCC_TYPE_ABSOLUTE 3 LCC_BEGIN_DECLS typedef uint64_t counter_t; typedef double gauge_t; +typedef uint64_t derive_t; +typedef uint64_t absolute_t; union value_u { counter_t counter; gauge_t gauge; + derive_t derive; + absolute_t absolute; }; typedef union value_u value_t; @@ -76,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; @@ -108,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 : */