mirror of https://github.com/labapart/gattlib
bluez5: Ported to Gattlib
parent
9c43746ec6
commit
e802d4ab50
|
@ -32,8 +32,8 @@
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
#include "lib/bluetooth.h"
|
#include <bluetooth/bluetooth.h>
|
||||||
#include "lib/uuid.h"
|
#include "uuid.h"
|
||||||
|
|
||||||
#include "src/shared/util.h"
|
#include "src/shared/util.h"
|
||||||
#include "att.h"
|
#include "att.h"
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
#include "lib/sdp.h"
|
#include "lib/sdp.h"
|
||||||
#include "lib/sdp_lib.h"
|
#include "lib/sdp_lib.h"
|
||||||
#include "lib/uuid.h"
|
#include "uuid.h"
|
||||||
|
|
||||||
#include "src/shared/util.h"
|
#include "src/shared/util.h"
|
||||||
#include "att.h"
|
#include "att.h"
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
#include "lib/bluetooth.h"
|
#include <bluetooth/bluetooth.h>
|
||||||
|
|
||||||
#include "btio/btio.h"
|
#include "btio/btio.h"
|
||||||
#include "src/log.h"
|
#include "src/log.h"
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
#define GATTRIB_ALL_REQS 0xFE
|
#define GATTRIB_ALL_REQS 0xFE
|
||||||
#define GATTRIB_ALL_HANDLES 0x0000
|
#define GATTRIB_ALL_HANDLES 0x0000
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
#include "lib/bluetooth.h"
|
#include <bluetooth/bluetooth.h>
|
||||||
#include "lib/l2cap.h"
|
#include "lib/l2cap.h"
|
||||||
#include "lib/rfcomm.h"
|
#include "lib/rfcomm.h"
|
||||||
#include "lib/sco.h"
|
#include "lib/sco.h"
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#include "bluetooth.h"
|
#include <bluetooth/bluetooth.h>
|
||||||
#include "hci.h"
|
#include "hci.h"
|
||||||
|
|
||||||
void baswap(bdaddr_t *dst, const bdaddr_t *src)
|
void baswap(bdaddr_t *dst, const bdaddr_t *src)
|
||||||
|
|
|
@ -318,7 +318,7 @@ void __btd_log_init(const char *debug, int detach)
|
||||||
|
|
||||||
openlog(LOG_IDENT, option, LOG_DAEMON);
|
openlog(LOG_IDENT, option, LOG_DAEMON);
|
||||||
|
|
||||||
info("Bluetooth daemon %s", VERSION);
|
info("Bluetooth daemon %d.%d", BLUEZ_VERSION_MAJOR, BLUEZ_VERSION_MINOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
void __btd_log_cleanup(void)
|
void __btd_log_cleanup(void)
|
||||||
|
|
|
@ -801,7 +801,7 @@ void tester_init(int *argc, char ***argv)
|
||||||
g_option_context_free(context);
|
g_option_context_free(context);
|
||||||
|
|
||||||
if (option_version == TRUE) {
|
if (option_version == TRUE) {
|
||||||
g_print("%s\n", VERSION);
|
g_print("%d.%d\n", BLUEZ_VERSION_MAJOR, BLUEZ_VERSION_MINOR);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue