summaryrefslogtreecommitdiffabout
path: root/gammu/emb/common/device/irda/irda_w32.h
blob: daffa3771122688d115129228557911b11a98319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

/* MS Platform SDK */

#ifndef __irda_w32_h
#define __irda_w32_h

#define AF_IRDA 			26
#define SOL_IRLMP 			0x00FF 
#define IRLMP_ENUMDEVICES 		0x00000010
#define IRLMP_9WIRE_MODE 		0x00000016

struct sockaddr_irda {
	unsigned short 			irdaAddressFamily;
	unsigned char 			irdaDeviceID[4];
	char 				irdaServiceName[25];
};

struct irda_device_info {
	unsigned char 			irdaDeviceID[4];
	char 				irdaDeviceName[22];
	unsigned char 			irdaDeviceHints1;
	unsigned char 			irdaDeviceHints2;
	unsigned char 			irdaCharSet;
};

struct irda_device_list {
	ULONG 				numDevice;
	struct irda_device_info 	Device[1];
};

#endif

/* How should editor hadle tabs in this file? Add editor commands here.
 * vim: noexpandtab sw=8 ts=8 sts=8:
 */