Commit Graph

173 Commits

Author SHA1 Message Date
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
Johan Hedberg
814b06ed67 gobex: Add g_obex_packet_find_header and g_obex_packet_prepend_header 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
11d5035505 gobex: Fix RX MTU setting 2012-12-04 22:21:58 +01:00
Johan Hedberg
9c3a8c372d gobex: Fix minor (whitespace) coding style issue 2012-12-04 22:21:58 +01:00
Johan Hedberg
007fe21a23 gobex: Add missing g_set_error in header parsing 2012-12-04 22:21:58 +01:00
Johan Hedberg
7afc5a6f90 gobex: g_obex_new should create its own GIOChannel ref 2012-12-04 22:21:58 +01:00
Johan Hedberg
0a262129e4 gobex: Fix removing pending request timeout callback 2012-12-04 22:21:58 +01:00
Johan Hedberg
72dfb1af80 gobex: Remove superfluous return statement 2012-12-04 22:21:58 +01:00
Johan Hedberg
a3a72da600 gobex: Rename SRM Parameters definition to match spec. 2012-12-04 22:21:58 +01:00
Johan Hedberg
e94e8feec6 gobex: Add support for multi-response requests (SRM) 2012-12-04 22:21:58 +01:00
Johan Hedberg
0107b8f798 gobex: Add common response codes to gobex-packet.h 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
ad811dd51e gobex: Add support for on-demand headers 2012-12-04 22:21:58 +01:00
Johan Hedberg
a14e52b471 gobex: Add packet transport support 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
16193c926d gobex: Remove potential write source in g_obex_unref 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
966b77d0c0 gobex: Improve multiple request queuing 2012-12-04 22:21:57 +01:00
Johan Hedberg
54559a6cd1 gobex: Improve decoding error message 2012-12-04 22:21:57 +01:00
Johan Hedberg
565210f510 gobex: Fix decoding error memory leak 2012-12-04 22:21:57 +01:00
Johan Hedberg
ff78cb83a1 gobex: Fix length checks in packet decoding 2012-12-04 22:21:57 +01:00
Johan Hedberg
007d9e39f6 gobex: Don't export final bit details in public API 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
8bbfd51a9f gobex: Fix packet length updating when parsing headers 2012-12-04 22:21:57 +01:00
Johan Hedberg
aa1b87b6d8 gobex: Add initial GError support 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
1dc2ad6f0b gobex: Use GLib size types 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
fd54935c61 gobex: Set MTU from both connect requests and responses 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
8005be3b8a gobex: Add basic packet sending support 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
b8d9f56dd8 gobex: Add basic packet reading support 2012-12-04 22:21:56 +01:00
Johan Hedberg
e6ee77aedf gobex: Fix checking opcodes with final-bit set 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
e2576cb1cb gobex: Add basic MTU tracking variables 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
Johan Hedberg
231ab39838 gobex: Use GLib types and functions for fixed size integers 2012-12-04 22:21:56 +01:00
Johan Hedberg
31b5ebf48d gobex: Add helper functions for encoding and parsing 2012-12-04 22:21:56 +01:00
Johan Hedberg
cf9afde062 gobex: Add header creation functions 2012-12-04 22:21:55 +01:00
Johan Hedberg
579f895300 gobex: Add header encoding support 2012-12-04 22:21:55 +01:00
Johan Hedberg
f41a6a9a41 gobex: Add header->hlen to help with packet size calculations 2012-12-04 22:21:55 +01:00
Johan Hedberg
c03202af41 gobex: Rename header->len to header->vlen to accomodate for ->hlen 2012-12-04 22:21:55 +01:00
Johan Hedberg
eed615f8b3 gobex: Add a simple g_obex_request_add_header implementation 2012-12-04 22:21:55 +01:00
Johan Hedberg
4e4246a90a gobex: Remove unused obex.h file 2012-12-04 22:21:55 +01:00
Johan Hedberg
9c9a2ac588 gobex: Move definitions from obex.h to gobex.h 2012-12-04 22:21:55 +01:00
Johan Hedberg
e8c4fe5aa7 gobex: Add basic header parsing support 2012-12-04 22:21:55 +01:00
Johan Hedberg
b8cd1913e6 gobex: Add request stubs 2012-12-04 22:21:55 +01:00
Johan Hedberg
c45162aaec gobex: Add OBEX protocol definitions header file 2012-12-04 22:21:55 +01:00
Johan Hedberg
e1892e63c2 gobex: Add initial stubs 2012-12-04 22:21:55 +01:00