author | wimpie <wimpie> | 2005-01-04 01:44:52 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2005-01-04 01:44:52 (UTC) |
commit | 9a134ab03890d942d53b4121e31e2d37859fa42c (patch) (unidiff) | |
tree | e9db8bfc0734d96409c90e12712dd6d8204aeb21 /noncore/settings/networksettings2/opietooth2/bluezlib.h | |
parent | b65cbb7c8b45d57f849722d22f8f165cc202ceb5 (diff) | |
download | opie-9a134ab03890d942d53b4121e31e2d37859fa42c.zip opie-9a134ab03890d942d53b4121e31e2d37859fa42c.tar.gz opie-9a134ab03890d942d53b4121e31e2d37859fa42c.tar.bz2 |
New bluetooth library OT2 (loosely based on kbluetooth)
Diffstat (limited to 'noncore/settings/networksettings2/opietooth2/bluezlib.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/opietooth2/bluezlib.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/opietooth2/bluezlib.h b/noncore/settings/networksettings2/opietooth2/bluezlib.h new file mode 100644 index 0000000..c431574 --- a/dev/null +++ b/noncore/settings/networksettings2/opietooth2/bluezlib.h | |||
@@ -0,0 +1,28 @@ | |||
1 | #ifndef BLUEZLIB_H | ||
2 | #define BLUEZLIB_H | ||
3 | |||
4 | #include <signal.h> | ||
5 | #include <errno.h> | ||
6 | #include <sys/ioctl.h> | ||
7 | #include <sys/socket.h> | ||
8 | #include <fcntl.h> | ||
9 | #include <unistd.h> | ||
10 | #include <stdlib.h> | ||
11 | |||
12 | extern "C" { | ||
13 | #include <bluetooth/bluetooth.h> | ||
14 | #include <bluetooth/hci.h> | ||
15 | #include <bluetooth/hci_lib.h> | ||
16 | #include <bluetooth/sdp.h> | ||
17 | #include <bluetooth/sdp_lib.h> | ||
18 | #include <bluetooth/l2cap.h> | ||
19 | #include <bluetooth/bnep.h> | ||
20 | #include <bluetooth/rfcomm.h> | ||
21 | } | ||
22 | |||
23 | #define BT_DISABLED 0 | ||
24 | #define BT_ENABLED 1 | ||
25 | #define BT_UNKNOWN 2 | ||
26 | #define BTVALUE(x) ((x)?BT_ENABLED:BT_DISABLED) | ||
27 | |||
28 | #endif | ||