From 95b7ce7165c2e4939b1aa76666e3fe664fe8aef1 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 27 Jun 2011 11:14:27 +0300 Subject: [PATCH] gobex: Make G_OBEX_FINAL definition private --- gobex/gobex.c | 2 ++ gobex/gobex.h | 1 - unit/test-gobex.c | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gobex/gobex.c b/gobex/gobex.c index d41f85909..80a8bc473 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -36,6 +36,8 @@ #define G_OBEX_HDR_TYPE(id) ((id) & 0xc0) +#define G_OBEX_FINAL 0x80 + struct _GObexHeader { guint8 id; gboolean extdata; diff --git a/gobex/gobex.h b/gobex/gobex.h index f2e403360..5e3612fbc 100644 --- a/gobex/gobex.h +++ b/gobex/gobex.h @@ -33,7 +33,6 @@ #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 diff --git a/unit/test-gobex.c b/unit/test-gobex.c index cd0451eee..ae830fc53 100644 --- a/unit/test-gobex.c +++ b/unit/test-gobex.c @@ -28,9 +28,11 @@ #include +#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 }; -- 2.47.3