summaryrefslogtreecommitdiff
path: root/gobex/gobex-packet.c
Commit message (Collapse)AuthorAgeFilesLines
* build: Replace use of g_memdup with util_memdupLuiz Augusto von Dentz2022-01-061-2/+3
| | | | | | | | | | | This replaces the uses of g_memdup with util_memdup since the former has been deprecated: warning: ‘g_memdup’ is deprecated: Use 'g_memdup2' instead [-Wdeprecated-declarations] g_memdup2 requires bumping glib version which would likely have its own problems thus why util_memdup was introduced.
* gobex: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-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 compiler warning from casting functionsMarcel Holtmann2018-05-231-1/+6
|
* gobex: Fix a compilation error for the compatibility with LLVMMiao-chen Chou2016-12-071-2/+2
| | | | | | | | | | 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 crash when debug is enabledLuiz Augusto von Dentz2014-08-291-0/+6
| | | | | | | | | | | | | | | | GError can be NULL thus causing invalid read when trying to a message member such as bellow: Invalid read of size 8 at 0x41190F: g_obex_send_internal (gobex.c:531) by 0x4130A6: g_obex_send_req (gobex.c:756) by 0x4268A5: obc_session_unref (session.c:289) by 0x41396A: incoming_data (gobex.c:1397) by 0x59712A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x5971627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x5971A39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x40D78C: main (main.c:320) Address 0x0 is not stack'd, malloc'd or (recently) free'd
* gobex: Fix GPL version referenceJohan Hedberg2013-02-151-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 Hedberg2012-12-071-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 CPPFLAGSLucas De Marchi2012-12-051-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: log packets using G_OBEX_DEBUG_PACKETLuiz Augusto von Dentz2012-12-041-0/+38
|
* gobex: log errors using G_OBEX_DEBUG_ERRORLuiz Augusto von Dentz2012-12-041-0/+4
|
* gobex: fix includes of config.hLuiz Augusto von Dentz2012-12-041-1/+1
|
* gobex: add missing checks for config.hLuiz Augusto von Dentz2012-12-041-0/+4
|
* gobex: Remove g_obex_packet_find_headerJohan Hedberg2012-12-041-14/+0
| | | | This was exactly the same as g_obex_packet_get_header.
* gobex: Add OBEX packet header addition convenience functionsJohan Hedberg2012-12-041-0/+46
|
* gobex: Add g_obex_packet_get_body convenience functionJohan Hedberg2012-12-041-0/+11
|
* gobex: Remove _ID_ from header type definitionsJohan Hedberg2012-12-041-3/+3
|
* gobex: Add va-args based packet creation supportJohan Hedberg2012-12-041-4/+18
|
* gobex: Fix also response code for on-demand data based packetsJohan Hedberg2012-12-041-1/+5
|
* gobex: Use GObexDataProducer type instead of (custom) GObexPacketDataFuncJohan Hedberg2012-12-041-3/+4
|
* gobex: Make on-demand body headers a GObexPacket featureJohan Hedberg2012-12-041-10/+48
|
* gobex: Fix end of body packets for on-demand headersJohan Hedberg2012-12-041-0/+9
|
* gobex: Make on-demand header callbacks able to fail cleanlyJohan Hedberg2012-12-041-1/+8
|
* gobex: Add g_obex_packet_find_header and g_obex_packet_prepend_headerJohan Hedberg2012-12-041-0/+22
|
* gobex: Add convenience response sending functionJohan Hedberg2012-12-041-2/+3
|
* gobex: Add support for on-demand headersJohan Hedberg2012-12-041-8/+6
|
* gobex: Fix length checks in packet decodingJohan Hedberg2012-12-041-8/+2
|
* gobex: Don't export final bit details in public APIJohan Hedberg2012-12-041-3/+5
|
* gobex: Fix packet length updating when parsing headersJohan Hedberg2012-12-041-0/+1
|
* gobex: Add initial GError supportJohan Hedberg2012-12-041-13/+27
|
* gobex: Use GLib size typesJohan Hedberg2012-12-041-11/+11
|
* gobex: Split gobex.c into multiple modulesJohan Hedberg2012-12-041-0/+261