diff options
| author | yangwei <[email protected]> | 2022-07-20 20:20:31 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2022-07-27 14:17:49 +0800 |
| commit | 6f558132a1ed376af73782298e7783ef751b2f01 (patch) | |
| tree | 2fbe89d7ea39911cfcdaf0d89f2ee9656bf7dfb6 /src/packet_io | |
| parent | da47b8044254bf392158284cc232d707b054251c (diff) | |
rename packet_io_loop to stellar_event_base_loop
Diffstat (limited to 'src/packet_io')
| -rw-r--r-- | src/packet_io/packet_io.cpp | 4 | ||||
| -rw-r--r-- | src/packet_io/packet_io.h | 4 | ||||
| -rw-r--r-- | src/packet_io/test/gtest_packet_io.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/packet_io/packet_io.cpp b/src/packet_io/packet_io.cpp index 43b9e7d..1b786c1 100644 --- a/src/packet_io/packet_io.cpp +++ b/src/packet_io/packet_io.cpp @@ -26,12 +26,12 @@ void packet_io_close_device(struct packet_io_device *dev) return; } -int packet_io_rx(struct packet_io_device *dev, uint32_t rx_queue_id, struct packet *p[], int nr_p) +int packet_io_rx(struct packet_io_device *dev, uint32_t rx_queue_id, struct stellar_packet *p[], int nr_p) { return 0; } -int packet_io_tx(struct packet_io_device *dev, uint32_t rx_queue_id, struct packet *p[], int nr_p) +int packet_io_tx(struct packet_io_device *dev, uint32_t rx_queue_id, struct stellar_packet *p[], int nr_p) { return 0; }
\ No newline at end of file diff --git a/src/packet_io/packet_io.h b/src/packet_io/packet_io.h index 85cc16f..39414ca 100644 --- a/src/packet_io/packet_io.h +++ b/src/packet_io/packet_io.h @@ -19,5 +19,5 @@ void packet_io_destory(struct packet_io_instance *instance); struct packet_io_device *packet_io_open_device(struct packet_io_instance *instance, const char *dev_sym, uint32_t nr_rxqueue, uint32_t nr_txqueue); void packet_io_close_device(struct packet_io_device *dev); -int packet_io_rx(struct packet_io_device *dev, uint32_t rx_queue_id, struct packet *p[], int nr_p); -int packet_io_tx(struct packet_io_device *dev, uint32_t rx_queue_id, struct packet *p[], int nr_p);
\ No newline at end of file +int packet_io_rx(struct packet_io_device *dev, uint32_t rx_queue_id, struct stellar_packet *p[], int nr_p); +int packet_io_tx(struct packet_io_device *dev, uint32_t rx_queue_id, struct stellar_packet *p[], int nr_p);
\ No newline at end of file diff --git a/src/packet_io/test/gtest_packet_io.cpp b/src/packet_io/test/gtest_packet_io.cpp index ff0ea7f..8618e2e 100644 --- a/src/packet_io/test/gtest_packet_io.cpp +++ b/src/packet_io/test/gtest_packet_io.cpp @@ -1,6 +1,6 @@ #include <gtest/gtest.h> -#include "packet_io.h" +#include "../packet_io.h" TEST(PACKET_IO_Test, packet_io_create) { EXPECT_EQ(packet_io_create(PACKET_IO_PCAP, "TEST"), nullptr); |
