2006-12-05 21:06:09 +00:00
|
|
|
#ifndef _AIRPDCAP_INTEROP_H
|
|
|
|
#define _AIRPDCAP_INTEROP_H
|
|
|
|
|
2006-12-27 23:05:55 +00:00
|
|
|
/**
|
2007-01-02 19:56:59 +00:00
|
|
|
* Cast data types commonly used (e.g. UINT16) to their
|
2006-12-27 23:05:55 +00:00
|
|
|
* GLib equivalents.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#ifndef INT
|
|
|
|
typedef gint INT;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef UINT
|
|
|
|
typedef guint UINT;
|
|
|
|
#endif
|
2006-12-05 21:06:09 +00:00
|
|
|
|
|
|
|
#ifndef UINT8
|
2006-12-27 23:05:55 +00:00
|
|
|
typedef guint8 UINT8;
|
2006-12-05 21:06:09 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef UINT16
|
2006-12-27 23:05:55 +00:00
|
|
|
typedef guint16 UINT16;
|
2006-12-05 21:06:09 +00:00
|
|
|
#endif
|
|
|
|
|
2006-12-27 23:05:55 +00:00
|
|
|
#ifndef UINT32
|
|
|
|
typedef guint32 UINT32;
|
|
|
|
#endif
|
2006-12-05 21:06:09 +00:00
|
|
|
|
2006-12-27 23:05:55 +00:00
|
|
|
#ifndef UINT64
|
|
|
|
typedef guint64 UINT64;
|
|
|
|
#endif
|
2006-12-05 21:06:09 +00:00
|
|
|
|
2006-12-27 23:05:55 +00:00
|
|
|
#ifndef USHORT
|
|
|
|
typedef gushort USHORT;
|
|
|
|
#endif
|
2006-12-05 21:06:09 +00:00
|
|
|
|
2006-12-27 23:05:55 +00:00
|
|
|
#ifndef ULONG
|
|
|
|
typedef gulong ULONG;
|
|
|
|
#endif
|
2006-12-05 21:06:09 +00:00
|
|
|
|
2006-12-27 23:05:55 +00:00
|
|
|
#ifndef ULONGLONG
|
|
|
|
typedef guint64 ULONGLONG;
|
|
|
|
#endif
|
2006-12-05 21:06:09 +00:00
|
|
|
|
2006-12-27 23:05:55 +00:00
|
|
|
#ifndef CHAR
|
|
|
|
typedef gchar CHAR;
|
|
|
|
#endif
|
2006-12-05 21:06:09 +00:00
|
|
|
|
2006-12-27 23:05:55 +00:00
|
|
|
#ifndef UCHAR
|
|
|
|
typedef guchar UCHAR;
|
|
|
|
#endif
|
2006-12-05 21:06:09 +00:00
|
|
|
|
2006-12-27 23:05:55 +00:00
|
|
|
#ifndef size_t
|
|
|
|
typedef gsize size_t;
|
|
|
|
#endif
|
2006-12-05 21:06:09 +00:00
|
|
|
|
2007-01-02 19:56:59 +00:00
|
|
|
#ifdef WIN32
|
|
|
|
#include <winsock2.h> /* ntohs() */
|
|
|
|
#endif
|
|
|
|
|
2006-12-27 23:05:55 +00:00
|
|
|
#ifndef ntohs
|
2007-01-02 19:56:59 +00:00
|
|
|
#undef ntohs
|
2006-12-27 23:05:55 +00:00
|
|
|
#define ntohs(value) g_ntohs(value)
|
|
|
|
#endif
|
2006-12-05 21:06:09 +00:00
|
|
|
|
2006-12-27 23:05:55 +00:00
|
|
|
#endif /* _AIRPDCAP_INTEROP_H */
|