Removed automake stuff from "inert" subdirs. And there was much rejoicing.
[btb/d2x.git] / arch / linux / include / ipx_hlpr.h
1 #ifndef IPXHELPER_H_
2 #define IPXHELPER_H_
3 #include <sys/types.h>
4 #include "ipx_ld.h"
5
6 #define IPX_MANUAL_ADDRESS
7
8 struct ipx_recv_data {
9         /* all network order */
10         u_char src_network[4];
11         u_char src_node[6];
12         u_short src_socket;
13         u_short dst_socket;
14         int pkt_type;
15 };
16
17 struct ipx_helper {
18         int (*GetMyAddress)(void);
19         int (*OpenSocket)(ipx_socket_t *sk, int port);
20         void (*CloseSocket)(ipx_socket_t *mysock);
21         int (*SendPacket)(ipx_socket_t *mysock, IPXPacket_t *IPXHeader,
22          u_char *data, int dataLen);
23         int (*ReceivePacket)(ipx_socket_t *s, char *buffer, int bufsize, 
24          struct ipx_recv_data *rec);
25         int (*PacketReady)(ipx_socket_t *s);
26 };
27
28 #endif /* IPXHELPER_H_ */