X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvpp-api%2Fclient%2Fstat_client.h;h=31fd82b41e24c26bc405dd42ec257d1a81dae3cd;hb=2152e1cf8b3420d94ba31fe25853977ad945f35a;hp=aeca63419ee0e85c8ecedd97623380748e582960;hpb=3d2df215bf1de516ffbd8ee3815091ca3c3a492f;p=vpp.git diff --git a/src/vpp-api/client/stat_client.h b/src/vpp-api/client/stat_client.h index aeca63419ee..31fd82b41e2 100644 --- a/src/vpp-api/client/stat_client.h +++ b/src/vpp-api/client/stat_client.h @@ -18,16 +18,22 @@ #define included_stat_client_h #include -#include +#include #include -typedef struct +typedef enum { - uint64_t current_epoch; - stat_segment_shared_header_t *shared_header; - stat_segment_directory_entry_t *directory_vector; - ssize_t memory_size; -} stat_client_main_t; + STAT_DIR_TYPE_ILLEGAL = 0, + STAT_DIR_TYPE_SCALAR_INDEX, + STAT_DIR_TYPE_COUNTER_VECTOR_SIMPLE, + STAT_DIR_TYPE_COUNTER_VECTOR_COMBINED, + STAT_DIR_TYPE_ERROR_INDEX, +} stat_directory_type_t; + +/* Default socket to exchange segment fd */ +#define STAT_SEGMENT_SOCKET_FILE "/run/vpp/stats.sock" + +typedef struct stat_client_main_t stat_client_main_t; typedef struct {