diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2011-07-04 22:13:28 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-04 22:21:58 +0100 |
commit | a47064623286c0327eedd9f6cbb1e14e50de8032 (patch) | |
tree | f36055f417d565a17dff3e96c4e5bc222745319f /unit | |
parent | 9714844c668bca74181064ea01a62e40b2bae075 (diff) | |
download | bluez-a47064623286c0327eedd9f6cbb1e14e50de8032.tar.gz |
gobex: Add convenience response sending function
Diffstat (limited to 'unit')
-rw-r--r-- | unit/test-gobex-packet.c | 4 | ||||
-rw-r--r-- | unit/test-gobex.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/unit/test-gobex-packet.c b/unit/test-gobex-packet.c index 464382a2c..501d924f6 100644 --- a/unit/test-gobex-packet.c +++ b/unit/test-gobex-packet.c @@ -43,7 +43,7 @@ static void test_pkt(void) { GObexPacket *pkt; - pkt = g_obex_packet_new(G_OBEX_OP_PUT, TRUE); + pkt = g_obex_packet_new(G_OBEX_OP_PUT, TRUE, NULL); g_assert(pkt != NULL); @@ -161,7 +161,7 @@ static void test_encode_on_demand(void) uint8_t buf[255]; gssize len; - pkt = g_obex_packet_new(G_OBEX_OP_PUT, FALSE); + pkt = g_obex_packet_new(G_OBEX_OP_PUT, FALSE, NULL); hdr = g_obex_header_new_on_demand(G_OBEX_HDR_ID_BODY, get_body_data, NULL); diff --git a/unit/test-gobex.c b/unit/test-gobex.c index 84006c94c..5d65dde58 100644 --- a/unit/test-gobex.c +++ b/unit/test-gobex.c @@ -282,7 +282,7 @@ static void send_connect(GObexResponseFunc rsp_func, GIOFunc send_rsp_func, GObexPacket *req; guint8 connect_data[] = { 0x10, 0x00, 0x10, 0x00 }; - req = g_obex_packet_new(G_OBEX_OP_CONNECT, TRUE); + req = g_obex_packet_new(G_OBEX_OP_CONNECT, TRUE, NULL); g_assert(req != NULL); g_obex_packet_set_data(req, connect_data, sizeof(connect_data), @@ -356,7 +356,7 @@ static void test_cancel_req_immediate(void) r.err = NULL; - req = g_obex_packet_new(G_OBEX_OP_PUT, TRUE); + req = g_obex_packet_new(G_OBEX_OP_PUT, TRUE, NULL); r.id = g_obex_send_req(r.obex, req, -1, req_done, &r, &r.err); g_assert_no_error(r.err); g_assert(r.id != 0); @@ -437,7 +437,7 @@ static void test_cancel_req_delay(int transport_type) r.err = NULL; - req = g_obex_packet_new(G_OBEX_OP_PUT, TRUE); + req = g_obex_packet_new(G_OBEX_OP_PUT, TRUE, NULL); r.id = g_obex_send_req(r.obex, req, -1, req_done, &r, &r.err); g_assert_no_error(r.err); g_assert(r.id != 0); @@ -532,7 +532,7 @@ static void test_send_connect(int transport_type) r.buf = pkt_connect_req; r.len = sizeof(pkt_connect_req); - req = g_obex_packet_new(G_OBEX_OP_CONNECT, TRUE); + req = g_obex_packet_new(G_OBEX_OP_CONNECT, TRUE, NULL); g_assert(req != NULL); g_obex_packet_set_data(req, connect_data, sizeof(connect_data), @@ -596,7 +596,7 @@ static void test_send_on_demand(int transport_type) r.buf = pkt_put_body; r.len = sizeof(pkt_put_body); - req = g_obex_packet_new(G_OBEX_OP_PUT, FALSE); + req = g_obex_packet_new(G_OBEX_OP_PUT, FALSE, NULL); hdr = g_obex_header_new_on_demand(G_OBEX_HDR_ID_BODY, get_body_data, NULL); |