Luiz Augusto von Dentz
df65753b0a
gobex: Revert g_obex_pending_req_abort to static pending_req_abort
...
This reverts the changes introduced in
9095deb825
that made pending_req_abort
public which is not necessary considering g_obex_cancel_req can do the
same and is safe to call even if the request is not pending.
2013-09-29 17:01:07 +03:00
Lucas De Marchi
c1e4e183b5
gobex: Get rid of gint
...
Use plain int instead of gint. In glib gint is always a typedef to int,
so it's safe to use it even for callbacks with glib.
2013-05-01 09:04:21 +03:00
Johan Hedberg
30e2aaa3f8
gobex: Fix GPL version reference
...
These files (like everything else in the tree) should be GPL 2 or later
instead of GPL 2 only.
2013-02-15 16:25:29 +02:00
Jaganath Kanakkassery
9095deb825
gobex: Add callback and userdata parameter to g_obex_cancel_transfer()
...
If callback is provided in g_obex_cancel_transfer() current complete
callback will be replaced by the new one and user will be informed
when abort completes.
2012-12-04 22:22:06 +01:00
Luiz Augusto von Dentz
faac92a4cb
gobex: Translate posix error code to proper OBEX response opcode
...
This patch create a map between posix errors code and OBEX response
opcode and use it to generate a proper response in case a transfer
failed instead of always responding with internal error.
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
6e7d00ceec
gobex: handle Single Response Mode (SRM) headers
...
Single Response Mode (SRM) is a 1-byte quantity containing a value to
enable or disable SRM, as well as to indicate support for SRM.
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
c11d66be4c
gobex: introduce g_obex_get_rsp_pkt
...
g_obex_get_rsp_pkt takes a response packet which sometimes is more
convenient for adding headers.
2012-12-04 22:22:05 +01:00
Bartosz Szatkowski
d2b34b6a68
gobex: Add translating error codes to strings
2012-12-04 22:22:04 +01:00
Johan Hedberg
4549f997e8
gobex: Add client transfer functions taking a pre-created GObexPacket
2012-12-04 22:22:02 +01:00
Johan Hedberg
e12802a76b
gobex: Add Action command convenience functions
2012-12-04 22:22:02 +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
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
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
42d94c84a2
gobex: Add support for suspend & resume
2012-12-04 22:22:00 +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
49514b2cc4
gobex: Track last received request internally and remove g_obex_response
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
2e49852cce
gobex: Use opcode instead of entire req in g_obex_response
2012-12-04 22:21:59 +01:00
Johan Hedberg
a470646232
gobex: Add convenience response sending function
2012-12-04 22:21:58 +01:00
Johan Hedberg
0794989ac8
gobex: Add convenience function for sending connect req
2012-12-04 22:21:58 +01:00
Johan Hedberg
57478308af
gobex: Add (transport) MTU parameters to g_obex_new
2012-12-04 22:21:58 +01:00
Johan Hedberg
680e9abc4b
gobex: Split ev_func into req_func and disconn_func
2012-12-04 22:21:58 +01:00
Johan Hedberg
13d42a0945
gobex: Add request cancellation support
2012-12-04 22:21:57 +01:00
Johan Hedberg
371bd8adf6
gobex: Remove disconn callback in favor of generic event callback
2012-12-04 22:21:57 +01:00
Johan Hedberg
9292a83d92
gobex: Add per-request timeouts
2012-12-04 22:21:57 +01:00
Johan Hedberg
0f10ac2b8c
gobex: Add proper error returns to packet sending functions
2012-12-04 22:21:57 +01:00
Johan Hedberg
31ebc74e69
gobex: Add disconnect callback support
2012-12-04 22:21:57 +01:00
Johan Hedberg
b105277b97
gobex: Split gobex.c into multiple modules
2012-12-04 22:21:57 +01:00
Johan Hedberg
f9e824c0e6
gobex: Move request callback info from GObexPacket to GObex layer
2012-12-04 22:21:57 +01:00
Johan Hedberg
0302f86230
gobex: Add functions for fetching data from packets
2012-12-04 22:21:56 +01:00
Johan Hedberg
55b393abb0
gobex: Name header creation functions more intuitively
2012-12-04 22:21:56 +01:00
Johan Hedberg
7e86b549ae
gobex: Add basic internal handling of connect request
2012-12-04 22:21:56 +01:00
Johan Hedberg
b76d71e5b2
gobex: Refactor reading/writing to allow packet based transport
2012-12-04 22:21:56 +01:00
Johan Hedberg
fd01c40449
gobex: Add basic response handling
2012-12-04 22:21:56 +01:00
Johan Hedberg
95b7ce7165
gobex: Make G_OBEX_FINAL definition private
2012-12-04 22:21:56 +01:00
Johan Hedberg
f98d80b619
gobex: Fix GObexPacket variable naming
2012-12-04 22:21:56 +01:00
Johan Hedberg
2e94a60c20
gobex: Add basic request callback support
2012-12-04 22:21:56 +01:00
Johan Hedberg
696e89cfdc
gobex: Add function to get operation information
2012-12-04 22:21:56 +01:00
Johan Hedberg
22c146eb06
gobex: Clean up handling of the final bit
2012-12-04 22:21:56 +01:00
Johan Hedberg
a1824acc4d
gobex: Add g_obex_packet_set_data for non-header data
2012-12-04 22:21:56 +01:00
Johan Hedberg
9966d11291
gobex: Rename GObexRequest to GObexPacket
2012-12-04 22:21:56 +01:00
Johan Hedberg
8d451283e0
gobex: Add basic request decoding support
2012-12-04 22:21:56 +01:00
Johan Hedberg
352a739a89
gobex: Use enum instead of boolean for data policy
2012-12-04 22:21:56 +01:00
Johan Hedberg
0e858224b1
gobex: Rename header_parse to header_decode to match header_encode
2012-12-04 22:21:56 +01:00