Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gobex: Abort if there is no request to cancel | Luiz Augusto von Dentz | 2014-08-29 | 1 | -2/+7 |
| | | | | | If there is no request to cancel send an abort since otherwise the remote may hang waiting. | ||||
* | gobex: Add g_obex_abort | Luiz Augusto von Dentz | 2014-08-29 | 1 | -5/+2 |
| | |||||
* | gobex: Fix use after free | Andrei Emeltchenko | 2014-08-11 | 1 | -2/+7 |
| | | | | Refactor function transfer_get_req_first() to avoid use after free. | ||||
* | gobex: Fix use after free | Andrei Emeltchenko | 2014-08-11 | 1 | -0/+1 |
| | |||||
* | gobex: Fix use after free | Andrei Emeltchenko | 2014-08-05 | 1 | -0/+1 |
| | | | | transfer_complete() frees transfer pointer. | ||||
* | gobex/transfer: Keep request id for GET when SRM is active | Luiz Augusto von Dentz | 2014-03-21 | 1 | -1/+6 |
| | | | | | | In case a GET operation is in progress with SRM the same request id is valid for the whole transfer otherwise it is not possible to cancel the transfer after the first response. | ||||
* | gobex: Handle suspending/resuming for GET when SRM is active | Luiz Augusto von Dentz | 2014-02-20 | 1 | -1/+1 |
| | | | | | | | This adds support for suspending/resuming GET requests GET when SRM is active, in this case suspending the TX queue wont stop the remote to continue sending packets, to do that SRMP header should be set to wait so the remote should wait. | ||||
* | gobex: Fix crash on g_obex_pending_req_abort | Luiz Augusto von Dentz | 2013-09-29 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | It is not safe to call g_obex_pending_req_abort directly as pending_req can be NULL: Invalid read of size 4 at 0x41231E: g_obex_pending_req_abort (gobex.c:693) by 0x416A8A: g_obex_cancel_transfer (gobex-transfer.c:647) by 0x42DEF2: obc_transfer_cancel (transfer.c:180) by 0x43D833: process_message.isra.5 (object.c:259) by 0x3B0701CE85: ??? (in /usr/lib64/libdbus-1.so.3.7.4) by 0x3B0700FA30: dbus_connection_dispatch (in /usr/lib64/libdbus-1.so.3.7.4) by 0x43A5B7: message_dispatch (mainloop.c:76) by 0x3B03C48962: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x3B03C47E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x3B03C48157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x3B03C48559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x40D53C: main (main.c:319) Address 0x30 is not stack'd, malloc'd or (recently) free'd | ||||
* | gobex: Add proper message to transfer errors | Luiz Augusto von Dentz | 2013-08-12 | 1 | -2/+2 |
| | | | | | This improve the error message when a transfer fails by using g_obex_strerror to decode the response code to a human readable string. | ||||
* | gobex: Fix GPL version reference | Johan Hedberg | 2013-02-15 | 1 | -2/+3 |
| | | | | | These files (like everything else in the tree) should be GPL 2 or later instead of GPL 2 only. | ||||
* | Revert "Ensure config.h is included by using CPPFLAGS" | Johan Hedberg | 2012-12-07 | 1 | -0/+4 |
| | | | | | | | | | | | | | | This reverts commit 8a03376544b046a84301847d1594f6c3674983ff. The patch needs to be split up and the gdbus/ changes were bogus compared to the original commit message. Conflicts: Makefile.am Makefile.obexd profiles/cyclingspeed/cyclingspeed.c profiles/heartrate/heartrate.c src/error.c | ||||
* | Ensure config.h is included by using CPPFLAGS | Lucas De Marchi | 2012-12-05 | 1 | -4/+0 |
| | | | | | | | | | | Instead of trying to include config.h in each file over the tree and possibly forgetting to include it, give a "-include config.h" argument to the compiler so it's guaranteed that a) it will be included for all source files and b) it will be the first header included. gdbus/ directory is left out, since it would break other projects using it. | ||||
* | gobex: Add callback and userdata parameter to g_obex_cancel_transfer() | Jaganath Kanakkassery | 2012-12-04 | 1 | -2/+15 |
| | | | | | | 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. | ||||
* | gobex: Translate posix error code to proper OBEX response opcode | Luiz Augusto von Dentz | 2012-12-04 | 1 | -2/+4 |
| | | | | | | 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. | ||||
* | gobex: handle Single Response Mode (SRM) headers | Luiz Augusto von Dentz | 2012-12-04 | 1 | -7/+47 |
| | | | | | 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. | ||||
* | gobex: introduce g_obex_get_rsp_pkt | Luiz Augusto von Dentz | 2012-12-04 | 1 | -12/+23 |
| | | | | | g_obex_get_rsp_pkt takes a response packet which sometimes is more convenient for adding headers. | ||||
* | gobex: reduce duplicated code in g_obex_put_req | Luiz Augusto von Dentz | 2012-12-04 | 1 | -16/+2 |
| | | | | | g_obex_put_req is quite similar to g_obex_put_req_pkt so now it just call it to avoid duplicating this code. | ||||
* | gobex: fix transfer search in transfer_complete | Mikel Astiz | 2012-12-04 | 1 | -11/+19 |
| | | | | | | | | | The previous approach searched the transfer pointer itself, assuming that the transfers has not been modified if the pointer is in the list. However the callback could have removed the transfer and registered another one, which can eventually point to the same memory location. This is solved by looking for the transfer id instead of the pointer. | ||||
* | gobex: fix removing wrong id on transfer_free | Luiz Augusto von Dentz | 2012-12-04 | 1 | -1/+1 |
| | | | | If statement checks for get_id handle but was removing req_id. | ||||
* | gobex: log transfers using G_OBEX_DEBUG_TRANSFER | Luiz Augusto von Dentz | 2012-12-04 | 1 | -0/+50 |
| | |||||
* | gobex: log errors using G_OBEX_DEBUG_ERROR | Luiz Augusto von Dentz | 2012-12-04 | 1 | -0/+4 |
| | |||||
* | gobex: fix includes of config.h | Luiz Augusto von Dentz | 2012-12-04 | 1 | -0/+4 |
| | |||||
* | gobex: Use larger timeout first packet in transfers | Johan Hedberg | 2012-12-04 | 1 | -8/+10 |
| | | | | | | | Frequently upon receiving the first packet servers will perform some sort of user interaction to authorize the incoming request. It's therefore wise to use a larger timeout for this first packet on the client side. | ||||
* | gobex: Protect against transfer_complete callback removing the transfer | Johan Hedberg | 2012-12-04 | 1 | -0/+3 |
| | |||||
* | gobex: Add client transfer functions taking a pre-created GObexPacket | Johan Hedberg | 2012-12-04 | 1 | -0/+46 |
| | |||||
* | gobex: fix setting final bit on PUT requests | Luiz Augusto von Dentz | 2012-12-04 | 1 | -3/+7 |
| | | | | | Final bit should not be set when creating new request packets for PUT since it may be not be the end of the body. | ||||
* | gobex: Remove reduntant empty line | Johan Hedberg | 2012-12-04 | 1 | -1/+0 |
| | |||||
* | gobex: Add support for returning -EAGAIN from producer callback | Johan Hedberg | 2012-12-04 | 1 | -0/+7 |
| | |||||
* | gobex: Premit raw OBEX error codes within G_OBEX_ERROR GError domain | Johan Hedberg | 2012-12-04 | 1 | -1/+1 |
| | |||||
* | gobex: Refactor get response parsing in transfer code | Johan Hedberg | 2012-12-04 | 1 | -17/+33 |
| | |||||
* | gobex: Fix put request handling with final bit value | Johan Hedberg | 2012-12-04 | 1 | -22/+22 |
| | |||||
* | gobex: Merge gobex-transfer.h into gobex.h | Johan Hedberg | 2012-12-04 | 1 | -1/+0 |
| | |||||
* | gobex: Use guint instead of gint for request callback id | Johan Hedberg | 2012-12-04 | 1 | -8/+8 |
| | |||||
* | gobex: Make transfer functions take va-args header lists | Johan Hedberg | 2012-12-04 | 1 | -48/+64 |
| | |||||
* | gobex: Remove _ID_ from header type definitions | Johan Hedberg | 2012-12-04 | 1 | -18/+16 |
| | |||||
* | gobex: Add va-args based packet creation support | Johan Hedberg | 2012-12-04 | 1 | -15/+34 |
| | |||||
* | gobex: Remove unneeded data_policy from g_obex_header_new_bytes | Johan Hedberg | 2012-12-04 | 1 | -4/+2 |
| | |||||
* | gobex: Allow calling g_obex_get_rsp later with custom headers | Johan Hedberg | 2012-12-04 | 1 | -5/+9 |
| | |||||
* | gobex: Add g_obex_cancel_transfer | Johan Hedberg | 2012-12-04 | 1 | -0/+20 |
| | |||||
* | gobex: Fix g_obex_get_rsp end of transfer handling | Johan Hedberg | 2012-12-04 | 1 | -3/+8 |
| | |||||
* | gobex: Add g_obex_get_rsp | Johan Hedberg | 2012-12-04 | 1 | -3/+65 |
| | |||||
* | gobex: Add g_obex_get_req | Johan Hedberg | 2012-12-04 | 1 | -2/+57 |
| | |||||
* | gobex: Don't call consumer callback if there is no data | Johan Hedberg | 2012-12-04 | 1 | -1/+2 |
| | |||||
* | gobex: Add basic server-side put transfer support | Johan Hedberg | 2012-12-04 | 1 | -1/+97 |
| | |||||
* | gobex: Rename g_obex_put to g_obex_put_req | Johan Hedberg | 2012-12-04 | 1 | -1/+1 |
| | |||||
* | gobex: Add type and name headers to the g_obex_put request | Johan Hedberg | 2012-12-04 | 1 | -0/+16 |
| | |||||
* | gobex: Use GObexDataProducer type instead of (custom) GObexPacketDataFunc | Johan Hedberg | 2012-12-04 | 1 | -2/+1 |
| | |||||
* | gobex: Make on-demand body headers a GObexPacket feature | Johan Hedberg | 2012-12-04 | 1 | -10/+3 |
| | |||||
* | gobex: Add initial transfer abstraction | Johan Hedberg | 2012-12-04 | 1 | -0/+177 |