Last change
on this file since 457 was 457, checked in by coas-nagasima, 4 years ago |
ファイルを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-chdr;charset=UTF-8
|
File size:
676 bytes
|
Rev | Line | |
---|
[457] | 1 | #ifndef LWIP_PCAPIF_H
|
---|
| 2 | #define LWIP_PCAPIF_H
|
---|
| 3 |
|
---|
| 4 | #ifdef __cplusplus
|
---|
| 5 | extern "C" {
|
---|
| 6 | #endif
|
---|
| 7 |
|
---|
| 8 | #include "lwip/err.h"
|
---|
| 9 |
|
---|
| 10 | /** Set to 1 to let rx use an own thread (only for NO_SYS==0).
|
---|
| 11 | * If set to 0, ethernetif_poll is used to poll for packets.
|
---|
| 12 | */
|
---|
| 13 | #ifndef PCAPIF_RX_USE_THREAD
|
---|
| 14 | #define PCAPIF_RX_USE_THREAD !NO_SYS
|
---|
| 15 | #endif
|
---|
| 16 | #if PCAPIF_RX_USE_THREAD && NO_SYS
|
---|
| 17 | #error "Can't create a dedicated RX thread with NO_SYS==1"
|
---|
| 18 | #endif
|
---|
| 19 |
|
---|
| 20 | struct netif;
|
---|
| 21 |
|
---|
| 22 | err_t pcapif_init (struct netif *netif);
|
---|
| 23 | void pcapif_shutdown(struct netif *netif);
|
---|
| 24 | #if !PCAPIF_RX_USE_THREAD
|
---|
| 25 | void pcapif_poll (struct netif *netif);
|
---|
| 26 | #endif /* !PCAPIF_RX_USE_THREAD */
|
---|
| 27 |
|
---|
| 28 | #ifdef __cplusplus
|
---|
| 29 | }
|
---|
| 30 | #endif
|
---|
| 31 |
|
---|
| 32 | #endif /* LWIP_PCAPIF_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.