diff options
author | Ole Troan <ot@cisco.com> | 2017-03-06 23:51:57 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-03-07 12:12:14 +0000 |
commit | dfc9b7cac857a3a49555f9fc448bd2c6aa3400a6 (patch) | |
tree | 2b7636eeb0eec6dcce00e1d6d8fa2ea976da0cbf /src/vpp-api/python/pneum/pneum.h | |
parent | 9c6a613feb2d718c5756cecbcd3ab84156241db2 (diff) |
Python API: Synchronous mode.
Change-Id: Ic8f186dbb35bb4e2e191d311cab51315a88a2d81
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vpp-api/python/pneum/pneum.h')
-rw-r--r-- | src/vpp-api/python/pneum/pneum.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vpp-api/python/pneum/pneum.h b/src/vpp-api/python/pneum/pneum.h index 9312eb47817..c4b55ae0be1 100644 --- a/src/vpp-api/python/pneum/pneum.h +++ b/src/vpp-api/python/pneum/pneum.h @@ -22,11 +22,13 @@ typedef void (*pneum_callback_t)(unsigned char * data, int len); int pneum_connect(char * name, char * chroot_prefix, pneum_callback_t cb, int rx_qlen); int pneum_disconnect(void); -int pneum_read(char **data, int *l); +int pneum_read(char **data, int *l, unsigned short timeout); 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); +void pneum_rx_suspend (void); +void pneum_rx_resume (void); #endif |