summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2012-08-21 22:17:46 +0200
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2012-08-21 22:25:18 +0200
commit3cadf6de64519da4ec11f16e048c05e4058a5ed6 (patch)
tree63c18a3be131d397e1d6647719155247010c6612 /sd
parentf2b1841ae3f082921ea0db44a0e6d4d7b0d92041 (diff)
Added bluez_bluetooth headers as a module.
Change-Id: Id9f4e59b5c46c7bee3cf0b129f523d963c0407a6
Diffstat (limited to 'sd')
-rw-r--r--sd/Library_sd.mk1
-rw-r--r--sd/source/ui/remotecontrol/bluetooth/bluetooth.h68
-rw-r--r--sd/source/ui/remotecontrol/bluetooth/rfcomm.h46
3 files changed, 1 insertions, 114 deletions
diff --git a/sd/Library_sd.mk b/sd/Library_sd.mk
index 3b82a0f8cac9..834891469cde 100644
--- a/sd/Library_sd.mk
+++ b/sd/Library_sd.mk
@@ -50,6 +50,7 @@ $(eval $(call gb_Library_add_sdi_headers,sd,\
$(eval $(call gb_Library_use_packages,sd,\
animations_inc \
+ bluez_bluetooth_inc \
))
$(eval $(call gb_Library_set_include,sd,\
diff --git a/sd/source/ui/remotecontrol/bluetooth/bluetooth.h b/sd/source/ui/remotecontrol/bluetooth/bluetooth.h
deleted file mode 100644
index db6cf30122d5..000000000000
--- a/sd/source/ui/remotecontrol/bluetooth/bluetooth.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
- ****************************************************************************
- ***
- *** This header was automatically generated from a Bluez header
- *** of the same name, to make information necessary for userspace to
- *** call into the kernel available to Android. It contains only constants,
- *** structures, and macros generated from the original header, and thus,
- *** contains no copyrightable information.
- ***
- ****************************************************************************
- ****************************************************************************/
-#ifndef __BLUETOOTH_H
-#define __BLUETOOTH_H
-
-#ifdef __cplusplus
-#endif
-#include <stdio.h>
-#include <stdint.h>
-#include <string.h>
-#include <endian.h>
-#include <byteswap.h>
-#ifndef AF_BLUETOOTH
-#define AF_BLUETOOTH 31
-#define PF_BLUETOOTH AF_BLUETOOTH
-#endif
-#ifndef SOL_BLUETOOTH
-#define SOL_BLUETOOTH 274
-#endif
-#define BTPROTO_L2CAP 0
-#define BTPROTO_HCI 1
-#define BTPROTO_SCO 2
-#define BTPROTO_RFCOMM 3
-#define BTPROTO_BNEP 4
-#define BTPROTO_CMTP 5
-#define BTPROTO_HIDP 6
-#define BTPROTO_AVDTP 7
-#define SOL_HCI 0
-#define SOL_L2CAP 6
-#define SOL_SCO 17
-#define SOL_RFCOMM 18
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-#define htobs(d) (d)
-#define htobl(d) (d)
-#define btohs(d) (d)
-#define btohl(d) (d)
-#elif __BYTE_ORDER == __BIG_ENDIAN
-#define htobs(d) bswap_16(d)
-#define htobl(d) bswap_32(d)
-#define btohs(d) bswap_16(d)
-#define btohl(d) bswap_32(d)
-#else
-#error "Unknown byte order"
-#endif
-#define bt_get_unaligned(ptr) ({ struct __attribute__((packed)) { typeof(*(ptr)) __v; } *__p = (void *) (ptr); __p->__v; })
-#define bt_put_unaligned(val, ptr) do { struct __attribute__((packed)) { typeof(*(ptr)) __v; } *__p = (void *) (ptr); __p->__v = (val); } while(0)
-#define BDADDR_ANY (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}})
-#define BDADDR_ALL (&(bdaddr_t) {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}})
-#define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}})
-#ifdef __cplusplus
-#endif
-typedef struct {
- uint8_t b[6];
-} __attribute__((packed)) bdaddr_t;
-static inline void bacpy(bdaddr_t *dst, const bdaddr_t *src)
-{
- memcpy(dst, src, sizeof(bdaddr_t));
-}
-#endif
diff --git a/sd/source/ui/remotecontrol/bluetooth/rfcomm.h b/sd/source/ui/remotecontrol/bluetooth/rfcomm.h
deleted file mode 100644
index bfa304f4579e..000000000000
--- a/sd/source/ui/remotecontrol/bluetooth/rfcomm.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/****************************************************************************
- ****************************************************************************
- ***
- *** This header was automatically generated from a Bluez header
- *** of the same name, to make information necessary for userspace to
- *** call into the kernel available to Android. It contains only constants,
- *** structures, and macros generated from the original header, and thus,
- *** contains no copyrightable information.
- ***
- ****************************************************************************
- ****************************************************************************/
-#ifndef __RFCOMM_H
-#define __RFCOMM_H
-
-#ifdef __cplusplus
-#endif
-#include <sys/socket.h>
-#define RFCOMM_DEFAULT_MTU 127
-#define RFCOMM_PSM 3
-#define RFCOMM_CONN_TIMEOUT (HZ * 30)
-#define RFCOMM_DISC_TIMEOUT (HZ * 20)
-#define RFCOMM_CONNINFO 0x02
-#define RFCOMM_LM 0x03
-#define RFCOMM_LM_MASTER 0x0001
-#define RFCOMM_LM_AUTH 0x0002
-#define RFCOMM_LM_ENCRYPT 0x0004
-#define RFCOMM_LM_TRUSTED 0x0008
-#define RFCOMM_LM_RELIABLE 0x0010
-#define RFCOMM_LM_SECURE 0x0020
-#define RFCOMM_MAX_DEV 256
-#define RFCOMMCREATEDEV _IOW('R', 200, int)
-#define RFCOMMRELEASEDEV _IOW('R', 201, int)
-#define RFCOMMGETDEVLIST _IOR('R', 210, int)
-#define RFCOMMGETDEVINFO _IOR('R', 211, int)
-#define RFCOMM_REUSE_DLC 0
-#define RFCOMM_RELEASE_ONHUP 1
-#define RFCOMM_HANGUP_NOW 2
-#define RFCOMM_TTY_ATTACHED 3
-#ifdef __cplusplus
-#endif
-struct sockaddr_rc {
- sa_family_t rc_family;
- bdaddr_t rc_bdaddr;
- uint8_t rc_channel;
-};
-#endif