summaryrefslogtreecommitdiff
path: root/gobex/gobex-header.c
Commit message (Collapse)AuthorAgeFilesLines
* build: Replace use of g_memdup with util_memdupLuiz Augusto von Dentz2022-01-061-3/+4
| | | | | | | | | | | 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: List all enum values in switchSzymon Janc2014-12-081-0/+1
| | | | As described in coding style M10.
* gobex: Fix crash when debug is enabledLuiz Augusto von Dentz2014-08-291-0/+2
| | | | | | | | | | | | | | | | 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/header: Add g_obex_header_new_tag functionLuiz Augusto von Dentz2014-03-311-2/+7
| | | | | This function can be used to set tag using GObexApparam as argument but for arbritary headers.
* 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: Integrate GObexApparam with GObexHeaderLuiz Augusto von Dentz2012-12-041-0/+25
| | | | | | This introduce 2 new convenient functions: g_obex_header_get_apparam which parses and decode an header into GObexApparam and gobex_header_new_apparam that encode GObexApparam into GObexHeader.
* gobex: Change UTF name to standardNeal Peacock2012-12-041-1/+1
|
* gobex: Fix dead assignments in gobex-header.cSzymon Janc2012-12-041-5/+5
| | | | Values stored are never read.
* gobex: log headers using G_OBEX_DEBUG_HEADERLuiz Augusto von Dentz2012-12-041-0/+49
|
* 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: Fix decoding byte array headers with too small lengthJohan Hedberg2012-12-041-0/+7
| | | | Length values of less than 3 are invalid.
* gobex: Fix encoding of empty unicode headersJakub Adamek2012-12-041-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: Remove _ID_ from header type definitionsJohan Hedberg2012-12-041-34/+34
|
* gobex: Add va-args based packet creation supportJohan Hedberg2012-12-041-0/+45
|
* gobex: Make buffer parameter const for g_obex_header_new_bytesJohan Hedberg2012-12-041-1/+1
|
* gobex: Remove unneeded data_policy from g_obex_header_new_bytesJohan Hedberg2012-12-041-15/+2
|
* gobex: Make on-demand body headers a GObexPacket featureJohan Hedberg2012-12-041-42/+0
|
* gobex: Make on-demand header callbacks able to fail cleanlyJohan Hedberg2012-12-041-5/+9
|
* gobex: Add missing g_set_error in header parsingJohan Hedberg2012-12-041-1/+6
|
* gobex: Add support for on-demand headersJohan Hedberg2012-12-041-0/+38
|
* gobex: Improve decoding error messageJohan Hedberg2012-12-041-2/+3
|
* gobex: Add initial GError supportJohan Hedberg2012-12-041-8/+38
|
* gobex: Use GLib size typesJohan Hedberg2012-12-041-12/+12
|
* gobex: Split gobex.c into multiple modulesJohan Hedberg2012-12-041-0/+376