summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/client/stat_client.c
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-11-23 23:07:13 +0100
committerDamjan Marion <dmarion@me.com>2018-11-26 19:53:55 +0000
commit2152e1cf8b3420d94ba31fe25853977ad945f35a (patch)
treed47a26f6db134ab823fe240cf7e7464a1f8f4815 /src/vpp-api/client/stat_client.c
parent3d2df215bf1de516ffbd8ee3815091ca3c3a492f (diff)
stats: Remove unneeded dependencies in stat_client
Remove exposing stat_client_main internals and atomics to simplify use from C++. Change-Id: Ie864170fee8b4eaa2fd7f98556cf0ebb46cb1a2a Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vpp-api/client/stat_client.c')
-rw-r--r--src/vpp-api/client/stat_client.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vpp-api/client/stat_client.c b/src/vpp-api/client/stat_client.c
index 98c275727f0..538820ad338 100644
--- a/src/vpp-api/client/stat_client.c
+++ b/src/vpp-api/client/stat_client.c
@@ -30,7 +30,15 @@
#include <vppinfra/lock.h>
#include "stat_client.h"
#include <stdatomic.h>
+#include <vpp/stats/stat_segment.h>
+struct stat_client_main_t
+{
+ 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_client_main;