2007-12-03 20:34:18 +00:00
|
|
|
#ifndef __PKTDRV_H__
|
|
|
|
#define __PKTDRV_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef void (*input_fn)(void *arg, void *packet, int len);
|
|
|
|
|
2007-12-23 14:28:38 +00:00
|
|
|
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);
|
2009-12-04 08:18:07 +00:00
|
|
|
int get_adapter_index(const char* adapter_guid);
|
2007-12-03 20:34:18 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|