diff options
| author | Qiuwen Lu <[email protected]> | 2016-05-11 15:33:36 +0800 |
|---|---|---|
| committer | Qiuwen Lu <[email protected]> | 2016-05-11 15:33:36 +0800 |
| commit | a92b88ff205c7f7db3faba07ec7ca710729a08a1 (patch) | |
| tree | 2dea1d3c8afdbd9acec974b50b6372f99e0dbf61 | |
| parent | 804c4819b899a0e78b093b9e9a54795efa26776b (diff) | |
修正编译错误,兼容老版本接口。v3.1.1-20160511
| -rw-r--r-- | include/extern/mr_rawio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/extern/mr_rawio.h b/include/extern/mr_rawio.h index c1c7579..de7a851 100644 --- a/include/extern/mr_rawio.h +++ b/include/extern/mr_rawio.h @@ -15,6 +15,8 @@ extern "C" { int dpdk_send_packet_dst(unsigned char *data, int datalen, int dst); int dpdk_send_packet_port(const unsigned char *data, int datalen, int port); +int dpdk_register_callfunc(int(*func)(const unsigned char *data, int datalen, int port_in, int lcore)); +int dpdk_register_callfunc_dst(int(*func)(const unsigned char *data, int datalen, int dst, int lcore)); int dpdk_init(int argc, char **argv); int dpdk_run(void); @@ -48,7 +50,6 @@ typedef struct __mr_pkt_desc typedef int(*mr_rawio_cb_t)(const char * data, int datalen, int seq, mr_pkt_desc_t * desc, void * arg); int marsio_rawio_cb_reg(mr_rawio_cb_t cb, void * arg); - #ifdef __cplusplus } #endif
\ No newline at end of file |
