summaryrefslogtreecommitdiffstats
path: root/src/vlibapi/api.h
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-04-26 13:59:20 -0700
committerDave Barach <openvpp@barachs.net>2017-05-03 12:35:05 +0000
commite72be39cd0f498178fd62dfc0a0b0daa2b633f62 (patch)
tree7b18cfecc33966c9fcb7a8daf3743d97a72332c6 /src/vlibapi/api.h
parent9e355523f30e46efd2b1550ae029b544dfe866c4 (diff)
A sprinkling of const in vlibmemory/api.h and friends
Change-Id: I953ebb37eeec7de0c4a6b00258c3c67a83cbc020 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vlibapi/api.h')
-rw-r--r--src/vlibapi/api.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/vlibapi/api.h b/src/vlibapi/api.h
index a62fa64493e..7538050e7b2 100644
--- a/src/vlibapi/api.h
+++ b/src/vlibapi/api.h
@@ -127,7 +127,7 @@ typedef struct
void (**msg_cleanup_handlers) (void *);
void (**msg_endian_handlers) (void *);
void (**msg_print_handlers) (void *, void *);
- char **msg_names;
+ const char **msg_names;
u8 *message_bounce;
u8 *is_mp_safe;
struct ring_alloc_ *arings;
@@ -195,8 +195,8 @@ typedef struct
/* client side message index hash table */
uword *msg_index_by_name_and_crc;
- char *region_name;
- char *root_path;
+ const char *region_name;
+ const char *root_path;
/* Replay in progress? */
int replay_in_progress;
@@ -276,8 +276,9 @@ void vl_msg_api_register_pd_handler (void *handler,
int vl_msg_api_pd_handler (void *mp, int rv);
void vl_msg_api_set_first_available_msg_id (u16 first_avail);
-u16 vl_msg_api_get_msg_ids (char *name, int n);
-void vl_msg_api_add_msg_name_crc (api_main_t * am, char *string, u32 id);
+u16 vl_msg_api_get_msg_ids (const char *name, int n);
+void vl_msg_api_add_msg_name_crc (api_main_t * am, const char *string,
+ u32 id);
u32 vl_api_get_msg_index (u8 * name_and_crc);
/* node_serialize.c prototypes */