File: obex_incl.h

package info (click to toggle)
libopenobex 1.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 972 kB
  • ctags: 1,552
  • sloc: ansic: 9,988; xml: 407; makefile: 96
file content (32 lines) | stat: -rw-r--r-- 680 bytes parent folder | download | duplicates (2)
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
#ifndef OBEX_INCL_H
#define OBEX_INCL_H

#include "transport/bluez_compat.h"

#if defined(_WIN32)
#  include <winsock2.h> /* make sure to use version 2 of Windows socket API */
#  include <windows.h>
#  define CALLAPI WINAPI
#endif

#include "openobex_export.h"

#ifndef LIB_SYMBOL
#define LIB_SYMBOL OPENOBEX_EXPORT
#endif

#ifndef CALLAPI
#define CALLAPI
#endif

/* This overides the define in openobex/obex.h */
#define OPENOBEX_SYMBOL(retval) LIB_SYMBOL retval CALLAPI

/* Visual Studio C++ Compiler 7.1 does not know about Bluetooth */
#if ( defined(_MSC_VER) && _MSC_VER < 1400 ) || !defined(HAVE_BLUETOOTH)
#define bt_addr_t void
#endif

#include <openobex/obex.h>

#endif