aboutsummaryrefslogtreecommitdiffstats
path: root/vpp-api/python/pneum
diff options
context:
space:
mode:
Diffstat (limited to 'vpp-api/python/pneum')
-rw-r--r--vpp-api/python/pneum/pneum.c6
-rw-r--r--vpp-api/python/pneum/pneum.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/vpp-api/python/pneum/pneum.c b/vpp-api/python/pneum/pneum.c
index 3b5455304e5..39fdf260d40 100644
--- a/vpp-api/python/pneum/pneum.c
+++ b/vpp-api/python/pneum/pneum.c
@@ -248,3 +248,9 @@ pneum_write (char *p, int l)
}
return (rv);
}
+
+uint32_t
+pneum_get_msg_index (unsigned char * name)
+{
+ return vl_api_get_msg_index (name);
+}
diff --git a/vpp-api/python/pneum/pneum.h b/vpp-api/python/pneum/pneum.h
index 00585eb72e5..a347bd25f62 100644
--- a/vpp-api/python/pneum/pneum.h
+++ b/vpp-api/python/pneum/pneum.h
@@ -15,6 +15,7 @@
#ifndef included_pneum_h
#define included_pneum_h
+#include <stdint.h>
#include <vppinfra/types.h>
typedef void (*pneum_callback_t)(unsigned char * data, int len);
@@ -25,5 +26,6 @@ int pneum_write(char *data, int len);
void pneum_free(void * msg);
uword * pneum_msg_table_get_hash (void);
int pneum_msg_table_size(void);
+uint32_t pneum_get_msg_index(unsigned char * name);
#endif