]> icculus.org git repositories - btb/d2x.git/blob - arch/linux/include/ipx_hlpr.h
use the orientation parameter of g3_draw_bitmap
[btb/d2x.git] / arch / linux / include / ipx_hlpr.h
1 /*
2  *
3  * FIXME: add description
4  *
5  */
6
7 #ifndef IPXHELPER_H_
8 #define IPXHELPER_H_
9 #include <sys/types.h>
10 #include "ipx_ld.h"
11
12 #define IPX_MANUAL_ADDRESS
13
14 struct ipx_recv_data {
15         /* all network order */
16         u_char src_network[4];
17         u_char src_node[6];
18         u_short src_socket;
19         u_short dst_socket;
20         int pkt_type;
21 };
22
23 struct ipx_helper {
24         int (*GetMyAddress)(void);
25         int (*OpenSocket)(ipx_socket_t *sk, int port);
26         void (*CloseSocket)(ipx_socket_t *mysock);
27         int (*SendPacket)(ipx_socket_t *mysock, IPXPacket_t *IPXHeader,
28          u_char *data, int dataLen);
29         int (*ReceivePacket)(ipx_socket_t *s, char *buffer, int bufsize, 
30          struct ipx_recv_data *rec);
31         int (*PacketReady)(ipx_socket_t *s);
32 };
33
34 #endif /* IPXHELPER_H_ */