summaryrefslogtreecommitdiff
path: root/tools/test-server.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2011-07-10 21:47:49 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2011-07-16 17:50:53 +0300
commit7e0c7a8d3130478baa90050e7765503ad4fd5573 (patch)
tree05068039df405a91969a085d32773da4a015e219 /tools/test-server.c
parent9d41127943daa56e58467bd3eb6ba52beab1a071 (diff)
downloadobexd-7e0c7a8d3130478baa90050e7765503ad4fd5573.tar.gz
gobex: Remove _ID_ from header type definitions
Diffstat (limited to 'tools/test-server.c')
-rw-r--r--tools/test-server.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/test-server.c b/tools/test-server.c
index bfb6877..6d2e75b 100644
--- a/tools/test-server.c
+++ b/tools/test-server.c
@@ -83,7 +83,7 @@ static void handle_put(GObex *obex, GObexPacket *req, gpointer user_data)
const char *type, *name;
gsize type_len;
- hdr = g_obex_packet_find_header(req, G_OBEX_HDR_ID_TYPE);
+ hdr = g_obex_packet_find_header(req, G_OBEX_HDR_TYPE);
if (hdr != NULL) {
g_obex_header_get_bytes(hdr, (const guint8 **) &type,
&type_len);
@@ -94,7 +94,7 @@ static void handle_put(GObex *obex, GObexPacket *req, gpointer user_data)
} else
type = NULL;
- hdr = g_obex_packet_find_header(req, G_OBEX_HDR_ID_NAME);
+ hdr = g_obex_packet_find_header(req, G_OBEX_HDR_NAME);
if (hdr != NULL)
g_obex_header_get_unicode(hdr, &name);
else
@@ -116,8 +116,7 @@ static void handle_connect(GObex *obex, GObexPacket *req, gpointer user_data)
g_print("connect\n");
- rsp = g_obex_packet_new(G_OBEX_RSP_SUCCESS, TRUE,
- G_OBEX_HDR_ID_INVALID);
+ rsp = g_obex_packet_new(G_OBEX_RSP_SUCCESS, TRUE, G_OBEX_HDR_INVALID);
g_obex_send(obex, rsp, NULL);
}