Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gobex: fix includes of config.h | Luiz Augusto von Dentz | 2012-12-04 | 4 | -3/+7 | |
| | ||||||
* | gobex: add missing checks for config.h | Luiz Augusto von Dentz | 2012-12-04 | 3 | -0/+12 | |
| | ||||||
* | gobex: Fix decoding byte array headers with too small length | Johan Hedberg | 2012-12-04 | 1 | -0/+7 | |
| | | | | Length values of less than 3 are invalid. | |||||
* | gobex: Remove g_obex_packet_find_header | Johan Hedberg | 2012-12-04 | 3 | -18/+3 | |
| | | | | This was exactly the same as g_obex_packet_get_header. | |||||
* | 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: Fix request timeout handling when aborting | Johan Hedberg | 2012-12-04 | 1 | -4/+14 | |
| | ||||||
* | gobex: Protect against user callback freeing internal objects | Johan Hedberg | 2012-12-04 | 1 | -3/+18 | |
| | | | | | | | A user callback could potentially do things like g_obex_cancel_request or g_obex_unref while we are inside the IO watch callback. It is therefore important to ensure that we are in a consistent state when the user callback returns. | |||||
* | gobex: Protect against transfer_complete callback removing the transfer | Johan Hedberg | 2012-12-04 | 1 | -0/+3 | |
| | ||||||
* | gobex: Fix opcode for Action command convenience functions | Johan Hedberg | 2012-12-04 | 1 | -2/+2 | |
| | ||||||
* | gobex: Add support for Action command header offset (0) | Johan Hedberg | 2012-12-04 | 1 | -0/+2 | |
| | ||||||
* | gobex: Add client transfer functions taking a pre-created GObexPacket | Johan Hedberg | 2012-12-04 | 2 | -0/+54 | |
| | ||||||
* | gobex: Add OBEX packet header addition convenience functions | Johan Hedberg | 2012-12-04 | 2 | -0/+52 | |
| | ||||||
* | gobex: Add Action command convenience functions | Johan Hedberg | 2012-12-04 | 3 | -0/+43 | |
| | ||||||
* | 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: fix not handling unkown transport type | Luiz Augusto von Dentz | 2012-12-04 | 1 | -0/+3 | |
| | ||||||
* | gobex: Fix encoding of empty unicode headers | Jakub Adamek | 2012-12-04 | 1 | -1/+10 | |
| | | | | | | | | | | | | According to IrOBEX: "An empty Name header is defined as a Name header of length 3 (one byte opcode + two byte length)." The current code encodes an empty header with 5 bytes, including two bytes of null-terminator. This patch assumes that this definition of emptiness applies to all unicode headers, not just the name header. | |||||
* | gobex: Fix compilation when NEED_G_SLIST_FREE_FULL is defined | Daniele Forsi | 2012-12-04 | 1 | -0/+5 | |
| | | | | | | | | | 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’ | |||||
* | gobex: Remove reduntant empty line | Johan Hedberg | 2012-12-04 | 1 | -1/+0 | |
| | ||||||
* | gobex: Fix compilation error with GPOINTER_TO_UINT | Johan Hedberg | 2012-12-04 | 1 | -2/+2 | |
| | | | | | | | 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] | |||||
* | gobex: Add support for returning -EAGAIN from producer callback | Johan Hedberg | 2012-12-04 | 2 | -0/+14 | |
| | ||||||
* | gobex: Premit raw OBEX error codes within G_OBEX_ERROR GError domain | Johan Hedberg | 2012-12-04 | 2 | -2/+5 | |
| | ||||||
* | 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: Add g_obex_packet_get_body convenience function | Johan Hedberg | 2012-12-04 | 2 | -0/+12 | |
| | ||||||
* | gobex: Make use of g_obex_send_rsp where possible | Johan Hedberg | 2012-12-04 | 1 | -8/+2 | |
| | ||||||
* | gobex: Allow g_obex_send_rsp to take custom headers | Johan Hedberg | 2012-12-04 | 2 | -3/+8 | |
| | ||||||
* | gobex: Merge gobex-transfer.h into gobex.h | Johan Hedberg | 2012-12-04 | 3 | -50/+22 | |
| | ||||||
* | gobex: Use guint instead of gint for request callback id | Johan Hedberg | 2012-12-04 | 3 | -28/+40 | |
| | ||||||
* | gobex: Minor coding style fixes | Johan Hedberg | 2012-12-04 | 1 | -6/+4 | |
| | ||||||
* | gobex: Add g_obex_send_rsp convenience function | Johan Hedberg | 2012-12-04 | 2 | -1/+12 | |
| | ||||||
* | gobex: Make use of va-args headers in higher level functions | Johan Hedberg | 2012-12-04 | 2 | -24/+16 | |
| | ||||||
* | gobex: Make transfer functions take va-args header lists | Johan Hedberg | 2012-12-04 | 2 | -55/+72 | |
| | ||||||
* | gobex: Remove _ID_ from header type definitions | Johan Hedberg | 2012-12-04 | 5 | -98/+94 | |
| | ||||||
* | gobex: Add va-args based packet creation support | Johan Hedberg | 2012-12-04 | 7 | -28/+118 | |
| | ||||||
* | gobex: Make buffer parameter const for g_obex_header_new_bytes | Johan Hedberg | 2012-12-04 | 2 | -2/+2 | |
| | ||||||
* | gobex: Remove unneeded data_policy from g_obex_header_new_bytes | Johan Hedberg | 2012-12-04 | 4 | -23/+6 | |
| | ||||||
* | gobex: Allow calling g_obex_get_rsp later with custom headers | Johan Hedberg | 2012-12-04 | 2 | -8/+12 | |
| | ||||||
* | gobex: Ignore unexpected responses (which can occur when aborting) | Johan Hedberg | 2012-12-04 | 1 | -0/+5 | |
| | ||||||
* | gobex: Add g_obex_delete | Johan Hedberg | 2012-12-04 | 2 | -0/+17 | |
| | ||||||
* | gobex: Add g_obex_mkdir | Johan Hedberg | 2012-12-04 | 2 | -0/+21 | |
| | ||||||
* | gobex: Add g_obex_setpath | Johan Hedberg | 2012-12-04 | 2 | -0/+27 | |
| | ||||||
* | gobex: Fix header offset lookup | Johan Hedberg | 2012-12-04 | 1 | -2/+2 | |
| | ||||||
* | gobex: Add g_obex_cancel_transfer | Johan Hedberg | 2012-12-04 | 2 | -0/+22 | |
| | ||||||
* | gobex: Fix g_obex_get_rsp end of transfer handling | Johan Hedberg | 2012-12-04 | 1 | -3/+8 | |
| | ||||||
* | gobex: Add support for suspend & resume | Johan Hedberg | 2012-12-04 | 2 | -0/+32 | |
| | ||||||
* | gobex: Add g_obex_get_rsp | Johan Hedberg | 2012-12-04 | 2 | -3/+69 | |
| | ||||||
* | gobex: Add g_obex_get_req | Johan Hedberg | 2012-12-04 | 2 | -2/+61 | |
| | ||||||
* | 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 | 2 | -2/+102 | |
| | ||||||
* | gobex: Fix typo | Johan Hedberg | 2012-12-04 | 1 | -1/+1 | |
| |