diff options
Diffstat (limited to 'src/vpp/stats/stat_segment.h')
-rw-r--r-- | src/vpp/stats/stat_segment.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vpp/stats/stat_segment.h b/src/vpp/stats/stat_segment.h index 3ce82809255..f3ea50c9d99 100644 --- a/src/vpp/stats/stat_segment.h +++ b/src/vpp/stats/stat_segment.h @@ -85,8 +85,13 @@ stat_segment_pointer (void *start, uint64_t offset) return ((char *) start + offset); } +typedef void (*stat_segment_update_fn)(stat_segment_directory_entry_t * e); + typedef struct { + /* internal, does not point to shared memory */ + stat_segment_update_fn *gauges_fns; + /* statistics segment */ uword *directory_vector_by_name; stat_segment_directory_entry_t *directory_vector; @@ -104,4 +109,7 @@ typedef struct extern stat_segment_main_t stat_segment_main; +clib_error_t * +stat_segment_register_gauge (u8 *names, stat_segment_update_fn update_fn); + #endif |