From 2c4acdd8d47a14867d9658debc674323efc78323 Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Thu, 6 May 2021 14:09:50 +0200 Subject: vlib: rename vl_counter_t to vlib_error_desc_t Type: improvement Signed-off-by: Ole Troan Change-Id: I368b0410db2d633d3c52199c840e24d21952c1b4 --- src/vlib/error.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/vlib/error.h') diff --git a/src/vlib/error.h b/src/vlib/error.h index 2bffc6b9367..b921067ee84 100644 --- a/src/vlib/error.h +++ b/src/vlib/error.h @@ -56,7 +56,7 @@ typedef struct char *name; char *desc; enum vl_counter_severity_e severity; -} vl_counter_t; +} vlib_error_desc_t; typedef struct { @@ -68,14 +68,13 @@ typedef struct /* Counter structures in heap. Heap index indexes counter vector. */ - vl_counter_t *counters_heap; + vlib_error_desc_t *counters_heap; } vlib_error_main_t; /* Per node error registration. */ -void vlib_register_errors (struct vlib_main_t *vm, - u32 node_index, +void vlib_register_errors (struct vlib_main_t *vm, u32 node_index, u32 n_errors, char *error_strings[], - vl_counter_t counters[]); + vlib_error_desc_t counters[]); unformat_function_t unformat_vlib_error; -- cgit 1.2.3-korg