summaryrefslogtreecommitdiff
path: root/tools/obex-server-tool.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2011-07-10 21:47:49 +0300
committerMarcel Holtmann <marcel@holtmann.org>2012-12-04 22:22:01 +0100
commit58cd14d209ae86ee99e909f034d14c52bdef1d1a (patch)
tree9bae7a28961013efc09b1af2f3346bf132fca4f7 /tools/obex-server-tool.c
parentcdcde596874e3a698b674c4ef0c47f13232bbe8c (diff)
downloadbluez-58cd14d209ae86ee99e909f034d14c52bdef1d1a.tar.gz
gobex: Remove _ID_ from header type definitions
Diffstat (limited to 'tools/obex-server-tool.c')
-rw-r--r--tools/obex-server-tool.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/obex-server-tool.c b/tools/obex-server-tool.c
index bfb6877ae..6d2e75b92 100644
--- a/tools/obex-server-tool.c
+++ b/tools/obex-server-tool.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);
}