diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/ntos/tdi/irda/inc/af_irda.h | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/ntos/tdi/irda/inc/af_irda.h')
-rw-r--r-- | private/ntos/tdi/irda/inc/af_irda.h | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/private/ntos/tdi/irda/inc/af_irda.h b/private/ntos/tdi/irda/inc/af_irda.h new file mode 100644 index 000000000..5e5d36b0d --- /dev/null +++ b/private/ntos/tdi/irda/inc/af_irda.h @@ -0,0 +1,100 @@ +// +// this is the header file that describes the IRDA address family +// +// CREATED 4/28: AldenG +// + +#ifndef __AFIRDA__ +#define __AFIRDA__ + +#include <winsock.h> + +#define AF_IRDA 22 // see winsock.h +#define PF_IRDA AF_IRDA + +#define SOL_IRLMP 0x00FF + +#define IRLMP_ENUMDEVICES 0x00000010 +#define IRLMP_IAS_SET 0x00000011 +#define IRLMP_IAS_QUERY 0x00000012 +#define IRLMP_SEND_PDU_LEN 0x00000013 +#define IRLMP_EXCLUSIVE_MODE 0x00000014 +#define IRLMP_IRLPT_MODE 0x00000015 +#define IRLMP_9WIRE_MODE 0x00000016 + +#define IAS_ATTRIB_NO_CLASS 0x00000010 +#define IAS_ATTRIB_NO_ATTRIB 0x00000000 +#define IAS_ATTRIB_INT 0x00000001 +#define IAS_ATTRIB_OCTETSEQ 0x00000002 +#define IAS_ATTRIB_STR 0x00000003 + +typedef struct _SOCKADDR_IRDA +{ + u_short irdaAddressFamily; + u_char irdaDeviceID[4]; + char irdaServiceName[25]; +} SOCKADDR_IRDA, *PSOCKADDR_IRDA; + +typedef struct _IRDA_DEVICE_INFO +{ + u_char irdaDeviceID[4]; + char irdaDeviceName[22]; + u_char Reserved[2]; +} IRDA_DEVICE_INFO, *PIRDA_DEVICE_INFO, FAR *LPIRDA_DEVICE_INFO; + +typedef struct _DEVICELIST +{ + ULONG numDevice; + IRDA_DEVICE_INFO Device[1]; +} DEVICELIST, *PDEVICELIST, FAR *LPDEVICELIST; + +typedef struct _IAS_SET +{ + char irdaClassName[61]; + char irdaAttribName[61]; + u_short irdaAttribType; + union + { + int irdaAttribInt; + struct + { + int Len; + u_char OctetSeq[1]; + u_char Reserved[3]; + } irdaAttribOctetSeq; + struct + { + int Len; + u_char CharSet; + u_char UsrStr[1]; + u_char Reserved[2]; + } irdaAttribUsrStr; + } irdaAttribute; +} IAS_SET, *PIAS_SET, FAR *LPIAS_SET; + +typedef struct _IAS_QUERY +{ + u_char irdaDeviceID[4]; + char irdaClassName[61]; + char irdaAttribName[61]; + u_short irdaAttribType; + union + { + int irdaAttribInt; + struct + { + int Len; + u_char OctetSeq[1]; + u_char Reserved[3]; + } irdaAttribOctetSeq; + struct + { + int Len; + u_char CharSet; + u_char UsrStr[1]; + u_char Reserved[2]; + } irdaAttribUsrStr; + } irdaAttribute; +} IAS_QUERY, *PIAS_QUERY, FAR *LPIAS_QUERY; + +#endif // __AFIRDA__ |