X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flibcollectdclient%2Fclient.h;h=b0d092d0d8c9ab3534249242279a1c43f43f94fd;hb=25ac639c505394e4ae9600ee62f5d5aeea97c6d4;hp=a0ab94c7ed9d99318a66c7e68b9b9cfcaabc2685;hpb=ef7fec0c4e0bbbabb356e6a570ac6297ee06eb80;p=collectd.git diff --git a/src/libcollectdclient/client.h b/src/libcollectdclient/client.h index a0ab94c7..b0d092d0 100644 --- a/src/libcollectdclient/client.h +++ b/src/libcollectdclient/client.h @@ -22,6 +22,8 @@ #ifndef LIBCOLLECTD_COLLECTDCLIENT_H #define LIBCOLLECTD_COLLECTDCLIENT_H 1 +#include "lcc_features.h" + /* * Includes (for data types) */ @@ -32,7 +34,6 @@ /* * Defines */ -#define LCC_VERSION 0 #define LCC_NAME_LEN 64 #define LCC_DEFAULT_PORT "25826" @@ -41,14 +42,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; @@ -105,5 +114,7 @@ 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); +LCC_END_DECLS + /* vim: set sw=2 sts=2 et : */ #endif /* LIBCOLLECTD_COLLECTDCLIENT_H */