bluez5: Ported to Gattlib

pull/8/head
Olivier Martin 2017-01-31 14:42:57 +01:00
parent 9c43746ec6
commit e802d4ab50
8 changed files with 10 additions and 8 deletions

View File

@ -32,8 +32,8 @@
#include <glib.h>
#include "lib/bluetooth.h"
#include "lib/uuid.h"
#include <bluetooth/bluetooth.h>
#include "uuid.h"
#include "src/shared/util.h"
#include "att.h"

View File

@ -33,7 +33,7 @@
#include "lib/sdp.h"
#include "lib/sdp_lib.h"
#include "lib/uuid.h"
#include "uuid.h"
#include "src/shared/util.h"
#include "att.h"

View File

@ -33,7 +33,7 @@
#include <glib.h>
#include "lib/bluetooth.h"
#include <bluetooth/bluetooth.h>
#include "btio/btio.h"
#include "src/log.h"

View File

@ -28,6 +28,8 @@
extern "C" {
#endif
#include <stdbool.h>
#define GATTRIB_ALL_REQS 0xFE
#define GATTRIB_ALL_HANDLES 0x0000

View File

@ -36,7 +36,7 @@
#include <glib.h>
#include "lib/bluetooth.h"
#include <bluetooth/bluetooth.h>
#include "lib/l2cap.h"
#include "lib/rfcomm.h"
#include "lib/sco.h"

View File

@ -35,7 +35,7 @@
#include <string.h>
#include <sys/socket.h>
#include "bluetooth.h"
#include <bluetooth/bluetooth.h>
#include "hci.h"
void baswap(bdaddr_t *dst, const bdaddr_t *src)

View File

@ -318,7 +318,7 @@ void __btd_log_init(const char *debug, int detach)
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)

View File

@ -801,7 +801,7 @@ void tester_init(int *argc, char ***argv)
g_option_context_free(context);
if (option_version == TRUE) {
g_print("%s\n", VERSION);
g_print("%d.%d\n", BLUEZ_VERSION_MAJOR, BLUEZ_VERSION_MINOR);
exit(EXIT_SUCCESS);
}