#define G_OBEX_OP_SETPATH 0x05
#define G_OBEX_OP_SESSION 0x07
#define G_OBEX_OP_ABORT 0x7f
-#define G_OBEX_FINAL 0x80
/* Header ID's */
#define G_OBEX_HDR_ID_COUNT 0xc0
#include <gobex/gobex.h>
+#define FINAL_BIT 0x80
+
static GMainLoop *mainloop = NULL;
-static uint8_t pkt_connect_req[] = { G_OBEX_OP_CONNECT | G_OBEX_FINAL,
+static uint8_t pkt_connect_req[] = { G_OBEX_OP_CONNECT | FINAL_BIT,
0x00, 0x07, 0x01, 0x00, 0x10, 0x00 };
static uint8_t hdr_connid[] = { G_OBEX_HDR_ID_CONNECTION, 1, 2, 3, 4 };