Commit Graph

729 Commits

Author SHA1 Message Date
Marcel Holtmann
4ba84c72f1 tools: Use batocomp function instead of ouitocomp 2012-12-09 00:02:22 +01:00
Johan Hedberg
b8779d2202 Revert "Ensure config.h is included by using CPPFLAGS"
This reverts commit 8a03376544.

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
2012-12-07 12:46:04 +02:00
Frédéric Danis
703dd8b404 hciconfig: Remove putkey command
With new storage architecture legacy storage "linkkeys"
file doesn't exist anymore.
2012-12-05 17:24:38 +02:00
Lucas De Marchi
8a03376544 Ensure config.h is included by using CPPFLAGS
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.
2012-12-05 17:18:07 +02:00
Lucas De Marchi
b84f6f794b build-sys: Define _GNU_SOURCE in config.h
Instead of defining _GNU_SOURCE in each source file (and potentially
forgetting in some), tell the build system we use extensions and let it
define _GNU_SOURCE in config.h.
2012-12-05 17:17:36 +02:00
Luiz Augusto von Dentz
36803c249d gobex: tools: Fix using BT_IO_TYPE in test-client and test-server 2012-12-04 22:22:07 +01:00
Michał Poczwardowski
77a7ad6ae1 gobex: tools: Fix test-client error message put/get typo 2012-12-04 22:22:06 +01:00
Marcel Holtmann
cd8a24b9fa gobex: build: Remove glib-helper.h support 2012-12-04 22:22:06 +01:00
Luiz Augusto von Dentz
9e1e47425e gobex: tools: Fix test-server to use ERTM while on packet mode
OBEX should only be used with ERTM over L2CAP and set MTU properly
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
26ce1d484f gobex: tools: Fix test-client to use ERTM while on packet mode
OBEX should only be used with ERTM over L2CAP and set MTU properly
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
ae33bcb8a4 gobex: tools: Make test-server to use ERTM
If port is bigger than 31 and stream mode is selected then use ERTM
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
2a94607646 gobex: tools: Make test-client use ERTM
If port is bigger than 31 and stream mode is selected then use ERTM
2012-12-04 22:22:05 +01:00
Johan Hedberg
1c2da64348 gobex: Remove g_obex_packet_find_header
This was exactly the same as g_obex_packet_get_header.
2012-12-04 22:22:03 +01:00
Luiz Augusto von Dentz
68bd9dd92b gobex: add option to set input/output MTU to test-server 2012-12-04 22:22:02 +01:00
Luiz Augusto von Dentz
701f8845b5 gobex: add option to set input/output MTU to test-client 2012-12-04 22:22:02 +01:00
Luiz Augusto von Dentz
971be76c62 gobex: add root support to test-server 2012-12-04 22:22:02 +01:00
Luiz Augusto von Dentz
2c5bb3ec41 gobex: Add Bluetooth support for test-server 2012-12-04 22:22:02 +01:00
Luiz Augusto von Dentz
7e7a99b039 gobex: Add Bluetooth support for test-client 2012-12-04 22:22:02 +01:00
Syam Sidhardhan
cb6fe44ba1 gobex: Remove bogus extra semicolons 2012-12-04 22:22:02 +01:00
Daniele Forsi
f64fe4f401 gobex: Fix compilation when NEED_G_SLIST_FREE_FULL is defined
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’
2012-12-04 22:22:02 +01:00
Luiz Augusto von Dentz
c1b8f95c2a gobex: Make use of g_slist_free_full when elements are dynamically-allocated
This avoid having to iterate twice in the list to free its elements.
2012-12-04 22:22:02 +01:00
Johan Hedberg
3352a36c11 gobex: Allow g_obex_send_rsp to take custom headers 2012-12-04 22:22:01 +01:00
Johan Hedberg
ddb69649e8 gobex: Merge gobex-transfer.h into gobex.h 2012-12-04 22:22:01 +01:00
Johan Hedberg
562f84396b gobex: Fix missing newline in test-server error log 2012-12-04 22:22:01 +01:00
Johan Hedberg
d713e186e5 gobex: Add g_obex_send_rsp convenience function 2012-12-04 22:22:01 +01:00
Johan Hedberg
0e2afe102e gobex: Fix test-server/client file creation mode 2012-12-04 22:22:01 +01:00
Johan Hedberg
14d2bde30d gobex: Add Get support to test-client and test-server 2012-12-04 22:22:01 +01:00
Johan Hedberg
c869ca28b8 gobex: Make use of va-args headers in higher level functions 2012-12-04 22:22:01 +01:00
Johan Hedberg
815218c7ef gobex: Make transfer functions take va-args header lists 2012-12-04 22:22:01 +01:00
Johan Hedberg
58cd14d209 gobex: Remove _ID_ from header type definitions 2012-12-04 22:22:01 +01:00
Johan Hedberg
cdcde59687 gobex: Add va-args based packet creation support 2012-12-04 22:22:01 +01:00
Johan Hedberg
bfb84a44a7 gobex: Add put streaming support to test-server 2012-12-04 22:21:59 +01:00
Johan Hedberg
f25c695d22 gobex: Print more informative disconnect message in test-client 2012-12-04 22:21:59 +01:00
Johan Hedberg
10dfec83a1 gobex: Rename g_obex_put to g_obex_put_req 2012-12-04 22:21:59 +01:00
Johan Hedberg
d2c30f5c78 gobex: Update test-server to use per-opcode request handlers 2012-12-04 22:21:59 +01:00
Johan Hedberg
6cfe881554 gobex: Add basic put request parsing to test-server 2012-12-04 22:21:59 +01:00
Johan Hedberg
49514b2cc4 gobex: Track last received request internally and remove g_obex_response 2012-12-04 22:21:59 +01:00
Johan Hedberg
b1cc9a1269 gobex: Add support for put transfer in test-client 2012-12-04 22:21:59 +01:00
Johan Hedberg
bc076f8437 gobex: Add proper responses to all requests in test-server 2012-12-04 22:21:59 +01:00
Johan Hedberg
2e49852cce gobex: Use opcode instead of entire req in g_obex_response 2012-12-04 22:21:59 +01:00
Johan Hedberg
26f20b39af gobex: Use g_obex_respose in test-server 2012-12-04 22:21:58 +01:00
Johan Hedberg
9714844c66 gobex: Add request callback to test-server 2012-12-04 22:21:58 +01:00
Johan Hedberg
6bca789ddd gobex: Add connect command to test-client 2012-12-04 22:21:58 +01:00
Johan Hedberg
abbfdb3aa2 gobex: Add readline support to test-client 2012-12-04 22:21:58 +01:00
Johan Hedberg
f817405d04 gobex: Add basic skeleton for test-client 2012-12-04 22:21:58 +01:00
Johan Hedberg
d0903aa407 gobex: Fix test-server server socket leak 2012-12-04 22:21:58 +01:00
Johan Hedberg
3ccda2440d gobex: Add some basic command line options to test-server 2012-12-04 22:21:58 +01:00
Johan Hedberg
7afc5a6f90 gobex: g_obex_new should create its own GIOChannel ref 2012-12-04 22:21:58 +01:00
Johan Hedberg
0b362843b0 gobex: Add per-client tracking to test-server 2012-12-04 22:21:58 +01:00
Johan Hedberg
552823f60b gobex: Add a skeleton for a test server 2012-12-04 22:21:58 +01:00