mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-11-06 04:05:03 +00:00
27 lines
620 B
C
27 lines
620 B
C
#ifndef __PKTDRV_H__
|
|
#define __PKTDRV_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void (*input_fn)(void *arg, void *packet, int len);
|
|
|
|
enum link_adapter_event {
|
|
LINKEVENT_UNCHANGED,
|
|
LINKEVENT_UP,
|
|
LINKEVENT_DOWN
|
|
};
|
|
|
|
void* init_adapter (int adapter_num, char *mac_addr, input_fn input, void *arg);
|
|
void shutdown_adapter(void *adapter);
|
|
int packet_send (void *adapter, void *buffer, int len);
|
|
void update_adapter (void *adapter);
|
|
enum link_adapter_event link_adapter (void *adapter);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|