OSDN Git Service

gobex: Make G_OBEX_FINAL definition private
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 27 Jun 2011 08:14:27 +0000 (11:14 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 4 Dec 2012 21:21:56 +0000 (22:21 +0100)
gobex/gobex.c
gobex/gobex.h
unit/test-gobex.c

index d41f859..80a8bc4 100644 (file)
@@ -36,6 +36,8 @@
 
 #define G_OBEX_HDR_TYPE(id)    ((id) & 0xc0)
 
+#define G_OBEX_FINAL           0x80
+
 struct _GObexHeader {
        guint8 id;
        gboolean extdata;
index f2e4033..5e3612f 100644 (file)
@@ -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
index cd0451e..ae830fc 100644 (file)
 
 #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 };