Daniele Forsi
f64fe4f401
gobex: Fix compilation when NEED_G_SLIST_FREE_FULL is defined
...
To use the replacement for g_slist_free_full() both compat.h and
glib-helper.h need to be included.
Fixes:
gobex/gobex.c:911: error: implicit declaration of function 'g_slist_free_full'
tools/obex-server-tool.c:344: error: implicit declaration of function ‘g_slist_free_full’
2012-12-04 22:22:02 +01:00
Johan Hedberg
6814998db7
gobex: Remove reduntant empty line
2012-12-04 22:22:02 +01:00
Johan Hedberg
1513406f59
gobex: Fix compilation error with GPOINTER_TO_UINT
...
Fixes the following issue seen on debian unstable:
gobex/gobex.c: In function 'handle_request':
gobex/gobex.c:646:50: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
2012-12-04 22:22:02 +01:00
Johan Hedberg
0528bfc1a0
gobex: Add support for returning -EAGAIN from producer callback
2012-12-04 22:22:02 +01:00
Johan Hedberg
f0598095d1
gobex: Premit raw OBEX error codes within G_OBEX_ERROR GError domain
2012-12-04 22:22:02 +01:00
Johan Hedberg
c38b06abda
gobex: Refactor get response parsing in transfer code
2012-12-04 22:22:02 +01:00
Johan Hedberg
234c29546d
gobex: Fix put request handling with final bit value
2012-12-04 22:22:01 +01:00
Johan Hedberg
d9ef079522
gobex: Add g_obex_packet_get_body convenience function
2012-12-04 22:22:01 +01:00
Johan Hedberg
b0341a13d5
gobex: Make use of g_obex_send_rsp where possible
2012-12-04 22:22:01 +01:00
Johan Hedberg
3352a36c11
gobex: Allow g_obex_send_rsp to take custom headers
2012-12-04 22:22:01 +01:00
Johan Hedberg
ddb69649e8
gobex: Merge gobex-transfer.h into gobex.h
2012-12-04 22:22:01 +01:00
Johan Hedberg
57e1082eb0
gobex: Use guint instead of gint for request callback id
2012-12-04 22:22:01 +01:00
Johan Hedberg
7ee5aede6e
gobex: Minor coding style fixes
2012-12-04 22:22:01 +01:00
Johan Hedberg
d713e186e5
gobex: Add g_obex_send_rsp convenience function
2012-12-04 22:22:01 +01:00
Johan Hedberg
c869ca28b8
gobex: Make use of va-args headers in higher level functions
2012-12-04 22:22:01 +01:00
Johan Hedberg
815218c7ef
gobex: Make transfer functions take va-args header lists
2012-12-04 22:22:01 +01:00
Johan Hedberg
58cd14d209
gobex: Remove _ID_ from header type definitions
2012-12-04 22:22:01 +01:00
Johan Hedberg
cdcde59687
gobex: Add va-args based packet creation support
2012-12-04 22:22:01 +01:00
Johan Hedberg
f8e95ce529
gobex: Make buffer parameter const for g_obex_header_new_bytes
2012-12-04 22:22:01 +01:00
Johan Hedberg
f5d10bf7cb
gobex: Remove unneeded data_policy from g_obex_header_new_bytes
2012-12-04 22:22:01 +01:00
Johan Hedberg
25faf4fc79
gobex: Allow calling g_obex_get_rsp later with custom headers
2012-12-04 22:22:01 +01:00
Johan Hedberg
7f5cb418d3
gobex: Ignore unexpected responses (which can occur when aborting)
2012-12-04 22:22:01 +01:00
Johan Hedberg
1760e5f5f5
gobex: Add g_obex_delete
2012-12-04 22:22:01 +01:00
Johan Hedberg
8554bc2a89
gobex: Add g_obex_mkdir
2012-12-04 22:22:01 +01:00
Johan Hedberg
1b609bec8e
gobex: Add g_obex_setpath
2012-12-04 22:22:00 +01:00
Johan Hedberg
8d7a30ff3e
gobex: Fix header offset lookup
2012-12-04 22:22:00 +01:00
Johan Hedberg
60263d9a33
gobex: Add g_obex_cancel_transfer
2012-12-04 22:22:00 +01:00
Johan Hedberg
5eb7afa856
gobex: Fix g_obex_get_rsp end of transfer handling
2012-12-04 22:22:00 +01:00
Johan Hedberg
42d94c84a2
gobex: Add support for suspend & resume
2012-12-04 22:22:00 +01:00
Johan Hedberg
98703e92d1
gobex: Add g_obex_get_rsp
2012-12-04 22:22:00 +01:00
Johan Hedberg
6abdccbf94
gobex: Add g_obex_get_req
2012-12-04 22:22:00 +01:00
Johan Hedberg
a2ced03a85
gobex: Don't call consumer callback if there is no data
2012-12-04 22:22:00 +01:00
Johan Hedberg
d070d17059
gobex: Add basic server-side put transfer support
2012-12-04 22:21:59 +01:00
Johan Hedberg
4fa31e1966
gobex: Fix typo
2012-12-04 22:21:59 +01:00
Johan Hedberg
0c9201a416
gobex: Fix also response code for on-demand data based packets
2012-12-04 22:21:59 +01:00
Johan Hedberg
10dfec83a1
gobex: Rename g_obex_put to g_obex_put_req
2012-12-04 22:21:59 +01:00
Johan Hedberg
7fee9ce693
gobex: Remove g_obex_set_request_function
2012-12-04 22:21:59 +01:00
Johan Hedberg
3f41b8b201
gobex: Add per-opcode request handlers
2012-12-04 22:21:59 +01:00
Johan Hedberg
2af993b895
gobex: Add type and name headers to the g_obex_put request
2012-12-04 22:21:59 +01:00
Johan Hedberg
b50f20a501
gobex: Use GObexDataProducer type instead of (custom) GObexPacketDataFunc
2012-12-04 22:21:59 +01:00
Johan Hedberg
0a4824ddb1
gobex: Make on-demand body headers a GObexPacket feature
2012-12-04 22:21:59 +01:00
Johan Hedberg
49514b2cc4
gobex: Track last received request internally and remove g_obex_response
2012-12-04 22:21:59 +01:00
Johan Hedberg
920c62df3e
gobex: Add initial transfer abstraction
2012-12-04 22:21:59 +01:00
Johan Hedberg
8888c5ae47
gobex: Fix end of body packets for on-demand headers
2012-12-04 22:21:59 +01:00
Johan Hedberg
ba377e0462
gobex: Don't stop sending data if a single packet fails to encode
2012-12-04 22:21:59 +01:00
Johan Hedberg
e6b2f2e4b7
gobex: Fix parsing over-sized packets
2012-12-04 22:21:59 +01:00
Johan Hedberg
67ad4a69a2
gobex: Rename GObexDisconnectFunc to simply GObexFunc
2012-12-04 22:21:59 +01:00
Johan Hedberg
714abdfc72
gobex: Make on-demand header callbacks able to fail cleanly
2012-12-04 22:21:59 +01:00
Johan Hedberg
2e49852cce
gobex: Use opcode instead of entire req in g_obex_response
2012-12-04 22:21:59 +01:00
Johan Hedberg
0fb35029cf
gobex: Add support for Connection ID header
2012-12-04 22:21:59 +01:00