Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gobex: Add SPDX License Identifier | Tedd Ho-Jeong An | 2020-09-21 | 1 | -14/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- GPL-2.0-or-later : 12 License: GPL-2.0-or-later gobex/gobex-defs.h gobex/gobex-transfer.c gobex/gobex.c gobex/gobex-apparam.h gobex/gobex-header.h gobex/gobex-header.c gobex/gobex.h gobex/gobex-packet.h gobex/gobex-defs.c gobex/gobex-debug.h gobex/gobex-apparam.c gobex/gobex-packet.c | ||||
* | gobex: Fix segfault caused by interrupted transfer | Denis Grigorev | 2020-07-01 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | When a obex transfer is interrupted by a peer in the middle, the response G_OBEX_RSP_FORBIDDEN comes and the transfer is freed in transfer_complete. However gobex is still ref'ed and gobex->io continues to be writable, so write_data() and then g_obex_abort() are called. When the abort response comes, struct obc_transfer is already freed, which leads to the crash. Backtrace : __GI___pthread_mutex_lock (mutex=0x65732f74) at pthread_mutex_lock.c:67 0xecc6eeda in dbus_connection_get_object_path_data () from libdbus-1.so.3 0x000457d4 in g_dbus_emit_property_changed_full () at gdbus/object.c:1794 0x00045868 in g_dbus_emit_property_changed () at gdbus/object.c:1832 0x000367f0 in transfer_set_status () at obexd/client/transfer.c:211 0x0003681e in transfer_set_status () at obexd/client/transfer.c:206 xfer_complete () at obexd/client/transfer.c:672 0x00022df6 in transfer_complete () at gobex/gobex-transfer.c:103 0x00022f44 in transfer_abort_response () at gobex/gobex-transfer.c:124 0x00020a0e in handle_response () at gobex/gobex.c:1128 0x00020dde in incoming_data () at gobex/gobex.c:1373 This commit introduces g_obex_drop_tx_queue(), which will be called if a transfer error detected. After the tx queue is dropped, obex shuts down gracefully. | ||||
* | gobex: Fix a compilation error for the compatibility with LLVM | Miao-chen Chou | 2016-12-07 | 1 | -6/+6 |
| | | | | | | | | | | The C Standard, subclause 7.16.1.4, paragraph 4 [ISO/IEC 9899:2011], states: The parameter parmN is the identifier of the rightmost parameter in the variable parameter list in the function definition (the one just before the ...). If the parameter parmN is declared with the register storage class, with a function or array type, or with a type that is not compatible with the type that results after application of the default argument promotions, the behavior is undefined. | ||||
* | gobex: Fix includes for gobex.h header | Marcel Holtmann | 2015-03-01 | 1 | -2/+2 |
| | |||||
* | gobex: Add g_obex_abort | Luiz Augusto von Dentz | 2014-08-29 | 1 | -0/+3 |
| | |||||
* | gobex: Add g_obex_disconnect | Luiz Augusto von Dentz | 2014-03-21 | 1 | -0/+3 |
| | | | | | This adds g_obex_disconnect function which can be used to send OBEX Disconnect command. | ||||
* | gobex: Revert g_obex_pending_req_abort to static pending_req_abort | Luiz Augusto von Dentz | 2013-09-29 | 1 | -2/+0 |
| | | | | | | | This reverts the changes introduced in 9095deb82572112fc0870095bf2222964610eafe 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. | ||||
* | gobex: Get rid of gint | Lucas De Marchi | 2013-05-01 | 1 | -1/+1 |
| | | | | | 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. | ||||
* | 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. | ||||
* | gobex: Add callback and userdata parameter to g_obex_cancel_transfer() | Jaganath Kanakkassery | 2012-12-04 | 1 | -1/+4 |
| | | | | | | 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 | -0/+1 |
| | | | | | | 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 | -0/+1 |
| | | | | | 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 | -0/+4 |
| | | | | | g_obex_get_rsp_pkt takes a response packet which sometimes is more convenient for adding headers. | ||||
* | gobex: Add translating error codes to strings | Bartosz Szatkowski | 2012-12-04 | 1 | -0/+2 |
| | |||||
* | gobex: Add client transfer functions taking a pre-created GObexPacket | Johan Hedberg | 2012-12-04 | 1 | -0/+8 |
| | |||||
* | gobex: Add Action command convenience functions | Johan Hedberg | 2012-12-04 | 1 | -0/+8 |
| | |||||
* | gobex: Allow g_obex_send_rsp to take custom headers | Johan Hedberg | 2012-12-04 | 1 | -1/+2 |
| | |||||
* | gobex: Merge gobex-transfer.h into gobex.h | Johan Hedberg | 2012-12-04 | 1 | -0/+22 |
| | |||||
* | gobex: Use guint instead of gint for request callback id | Johan Hedberg | 2012-12-04 | 1 | -2/+2 |
| | |||||
* | gobex: Add g_obex_send_rsp convenience function | Johan Hedberg | 2012-12-04 | 1 | -1/+3 |
| | |||||
* | gobex: Make use of va-args headers in higher level functions | Johan Hedberg | 2012-12-04 | 1 | -3/+3 |
| | |||||
* | gobex: Add g_obex_delete | Johan Hedberg | 2012-12-04 | 1 | -0/+3 |
| | |||||
* | gobex: Add g_obex_mkdir | Johan Hedberg | 2012-12-04 | 1 | -0/+3 |
| | |||||
* | gobex: Add g_obex_setpath | Johan Hedberg | 2012-12-04 | 1 | -0/+3 |
| | |||||
* | gobex: Add support for suspend & resume | Johan Hedberg | 2012-12-04 | 1 | -0/+4 |
| | |||||
* | gobex: Remove g_obex_set_request_function | Johan Hedberg | 2012-12-04 | 1 | -2/+0 |
| | |||||
* | gobex: Add per-opcode request handlers | Johan Hedberg | 2012-12-04 | 1 | -1/+4 |
| | |||||
* | gobex: Track last received request internally and remove g_obex_response | Johan Hedberg | 2012-12-04 | 1 | -3/+0 |
| | |||||
* | gobex: Rename GObexDisconnectFunc to simply GObexFunc | Johan Hedberg | 2012-12-04 | 1 | -3/+2 |
| | |||||
* | gobex: Use opcode instead of entire req in g_obex_response | Johan Hedberg | 2012-12-04 | 1 | -1/+2 |
| | |||||
* | gobex: Add convenience response sending function | Johan Hedberg | 2012-12-04 | 1 | -0/+2 |
| | |||||
* | gobex: Add convenience function for sending connect req | Johan Hedberg | 2012-12-04 | 1 | -0/+6 |
| | |||||
* | gobex: Add (transport) MTU parameters to g_obex_new | Johan Hedberg | 2012-12-04 | 1 | -1/+2 |
| | |||||
* | gobex: Split ev_func into req_func and disconn_func | Johan Hedberg | 2012-12-04 | 1 | -2/+6 |
| | |||||
* | gobex: Add request cancellation support | Johan Hedberg | 2012-12-04 | 1 | -1/+2 |
| | |||||
* | gobex: Remove disconn callback in favor of generic event callback | Johan Hedberg | 2012-12-04 | 1 | -6/+2 |
| | |||||
* | gobex: Add per-request timeouts | Johan Hedberg | 2012-12-04 | 1 | -2/+3 |
| | |||||
* | gobex: Add proper error returns to packet sending functions | Johan Hedberg | 2012-12-04 | 1 | -2/+2 |
| | |||||
* | gobex: Add disconnect callback support | Johan Hedberg | 2012-12-04 | 1 | -0/+4 |
| | |||||
* | gobex: Split gobex.c into multiple modules | Johan Hedberg | 2012-12-04 | 1 | -74/+1 |
| | |||||
* | gobex: Move request callback info from GObexPacket to GObex layer | Johan Hedberg | 2012-12-04 | 1 | -3/+0 |
| | |||||
* | gobex: Add functions for fetching data from packets | Johan Hedberg | 2012-12-04 | 1 | -0/+7 |
| | |||||
* | gobex: Name header creation functions more intuitively | Johan Hedberg | 2012-12-04 | 1 | -4/+4 |
| | |||||
* | gobex: Add basic internal handling of connect request | Johan Hedberg | 2012-12-04 | 1 | -0/+1 |
| | |||||
* | gobex: Refactor reading/writing to allow packet based transport | Johan Hedberg | 2012-12-04 | 1 | -1/+6 |
| | |||||
* | gobex: Add basic response handling | Johan Hedberg | 2012-12-04 | 1 | -0/+10 |
| | |||||
* | gobex: Make G_OBEX_FINAL definition private | Johan Hedberg | 2012-12-04 | 1 | -1/+0 |
| | |||||
* | gobex: Fix GObexPacket variable naming | Johan Hedberg | 2012-12-04 | 1 | -2/+2 |
| | |||||
* | gobex: Add basic request callback support | Johan Hedberg | 2012-12-04 | 1 | -1/+7 |
| | |||||
* | gobex: Add function to get operation information | Johan Hedberg | 2012-12-04 | 1 | -0/+1 |
| |