OSDN Git Service

android-x86/external-bluetooth-bluez.git
11 years agotest: Update monitor script to ObjectManager
Mikel Astiz [Wed, 5 Dec 2012 12:51:31 +0000 (13:51 +0100)]
test: Update monitor script to ObjectManager

Make the script compatible with the new API provided by the
ObjectManager and Properties interfaces.

11 years agotest: Avoid using DefaultAdapter()
Mikel Astiz [Wed, 5 Dec 2012 12:51:30 +0000 (13:51 +0100)]
test: Avoid using DefaultAdapter()

Call the utility library -which uses ObjectManager API- to avoid using
Manager.FindAdapter() and Manager.DefaultAdapter().

11 years agotest: Add utility library for python scripts
Mikel Astiz [Wed, 5 Dec 2012 12:51:29 +0000 (13:51 +0100)]
test: Add utility library for python scripts

Several convenience functions/features will be removed from BlueZ's
D-Bus API, and therefore a utility library is required to avoid
boilerplate code in the test scripts.

11 years agocups: Remove unnecessary code
Mikel Astiz [Wed, 5 Dec 2012 12:51:28 +0000 (13:51 +0100)]
cups: Remove unnecessary code

The adapter is always known so the code to handle the NULL case is not
needed.

11 years agoadapter: Always write address type when converting to new storage
Szymon Janc [Wed, 5 Dec 2012 12:32:55 +0000 (13:32 +0100)]
adapter: Always write address type when converting to new storage

When address type is not present in legacy storage assume BDADDR_BREDR
type and store it.

This also fix following compilation error on ARM:

  CC     src/bluetoothd-adapter.o
src/adapter.c: In function ‘convert_entry’:
src/adapter.c:2710:2: error: comparison is always true due to limited
range of data type [-Werror=type-limits]
cc1: all warnings being treated as errors
make[1]: *** [src/bluetoothd-adapter.o] Error 1

11 years agoaudio: Remove not used auto connect flag
Chan-yeol Park [Wed, 5 Dec 2012 10:16:35 +0000 (19:16 +0900)]
audio: Remove not used auto connect flag

This flag is not used anymore because HFP is moved away from bluez
It was used for Automatic HFP+A2DP connection with incomming connection.

11 years agoaudio: Remove left over of HFP removal
Chan-yeol Park [Wed, 5 Dec 2012 10:16:34 +0000 (19:16 +0900)]
audio: Remove left over of HFP removal

11 years agobuild: Include bluetooth lib folder for obexd
Chan-yeol Park [Wed, 5 Dec 2012 02:27:57 +0000 (11:27 +0900)]
build: Include bluetooth lib folder for obexd

Because obexd is included in bluez repo, obexd should refer to local
lib folder before system's one.

11 years agoaudio: Remove left over of HFP removal
Chan-yeol Park [Wed, 5 Dec 2012 02:27:56 +0000 (11:27 +0900)]
audio: Remove left over of HFP removal

11 years agocyclingspeed: Fix various coding style issues
Johan Hedberg [Wed, 5 Dec 2012 08:21:38 +0000 (10:21 +0200)]
cyclingspeed: Fix various coding style issues

11 years agotest: Enable speed and cadence calculation in test-cyclingspeed
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:46 +0000 (13:43 +0100)]
test: Enable speed and cadence calculation in test-cyclingspeed

This patch allows to enable instantenous speed and cadence calculation
based on measurement received from remote device.

To enable calculations additional parameter "--circumference <value>"
needs to be used when calling script which sets wheel circumference in mm.

Both speed and cadence are enabled at the same time. Speed is calculated
in km/h and cadence in rpm.

11 years agotest: Add cyclingspeed test script
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:45 +0000 (13:43 +0100)]
test: Add cyclingspeed test script

11 years agobuild: Add CSCP API document to EXTRA_DIST
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:44 +0000 (13:43 +0100)]
build: Add CSCP API document to EXTRA_DIST

11 years agodoc: Rename cycling API to cyclingspeed
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:43 +0000 (13:43 +0100)]
doc: Rename cycling API to cyclingspeed

11 years agodoc: Remove Get-/SetProperties from CSC API document
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:42 +0000 (13:43 +0100)]
doc: Remove Get-/SetProperties from CSC API document

cyclingspeed plugin uses DBus.Properties instead of custom methods.

11 years agocore: Add CyclingSpeedWatcher interface to default policy
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:41 +0000 (13:43 +0100)]
core: Add CyclingSpeedWatcher interface to default policy

11 years agocyclingspeed: Add support for Set Cumulative Value
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:40 +0000 (13:43 +0100)]
cyclingspeed: Add support for Set Cumulative Value

11 years agocyclingspeed: Add support for Update Sensor Location
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:39 +0000 (13:43 +0100)]
cyclingspeed: Add support for Update Sensor Location

11 years agocyclingspeed: Add support for Request Supported Sensor Locations
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:38 +0000 (13:43 +0100)]
cyclingspeed: Add support for Request Supported Sensor Locations

11 years agocyclingspeed: Add stub to use SC Control Point
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:37 +0000 (13:43 +0100)]
cyclingspeed: Add stub to use SC Control Point

This patch implements common functions to use SC Control Point.
Individual procedures will be implemented in subsequent patches.

11 years agocyclingspeed: Add DBus.Properties for org.bluez.CyclingSpeed interface
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:36 +0000 (13:43 +0100)]
cyclingspeed: Add DBus.Properties for org.bluez.CyclingSpeed interface

11 years agocyclingspeed: Process measurement notifications
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:35 +0000 (13:43 +0100)]
cyclingspeed: Process measurement notifications

11 years agocyclingspeed: Add support to enable measurement notifications
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:34 +0000 (13:43 +0100)]
cyclingspeed: Add support to enable measurement notifications

11 years agocyclingspeed: Add CyclingSpeedManager interface
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:33 +0000 (13:43 +0100)]
cyclingspeed: Add CyclingSpeedManager interface

This patch registers org.bluez.CyclingSpeedManager interface for each
adapter to allow registration and deregistration of measurement watchers.

11 years agocyclingspeed: Read Sensor Location characteristic value
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:32 +0000 (13:43 +0100)]
cyclingspeed: Read Sensor Location characteristic value

11 years agocyclingspeed: Read CSC Feature characteristic value
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:31 +0000 (13:43 +0100)]
cyclingspeed: Read CSC Feature characteristic value

11 years agocyclingspeed: Discover characteristics CCC
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:30 +0000 (13:43 +0100)]
cyclingspeed: Discover characteristics CCC

11 years agocyclingspeed: Discover CSCS characteristics
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:29 +0000 (13:43 +0100)]
cyclingspeed: Discover CSCS characteristics

11 years agocyclingspeed: Add attio callbacks
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:28 +0000 (13:43 +0100)]
cyclingspeed: Add attio callbacks

11 years agocyclingspeed: Add CSC profile plugin skeleton
Andrzej Kaczmarek [Tue, 4 Dec 2012 12:43:27 +0000 (13:43 +0100)]
cyclingspeed: Add CSC profile plugin skeleton

This patch adds stub profile driver plugin for CSC profile.

11 years agobuild: Compile obexd and obex-client
Marcel Holtmann [Tue, 4 Dec 2012 22:38:48 +0000 (23:38 +0100)]
build: Compile obexd and obex-client

11 years agoobexd: Fix using BtIOType
Luiz Augusto von Dentz [Wed, 14 Nov 2012 12:28:54 +0000 (14:28 +0200)]
obexd: Fix using BtIOType

11 years agoobexd: Fix using BtIOType
Luiz Augusto von Dentz [Wed, 14 Nov 2012 11:55:21 +0000 (13:55 +0200)]
obexd: Fix using BtIOType

11 years agoobexd: Add get_next_header() in message listing
Sunil Kumar Behera [Thu, 8 Nov 2012 11:02:58 +0000 (16:32 +0530)]
obexd: Add get_next_header() in message listing

In case of message listing we need to send application
parameters in response and also it is required for sending
response to message listing size request.

11 years agoobexd: Reset ap_sent variable
Sunil Kumar Behera [Thu, 8 Nov 2012 11:06:26 +0000 (16:36 +0530)]
obexd: Reset ap_sent variable

For multiple subsequent request for message listing
we need to reset this variable to FALSE, so that each
time the get next header function is executed properly.

11 years agoobexd: Fix sending absolute path
Luiz Augusto von Dentz [Fri, 26 Oct 2012 14:02:29 +0000 (17:02 +0300)]
obexd: Fix sending absolute path

As per OBEX spec the NAME header should not contain absolute paths

11 years agoobexd: Fix returning empty if messages was already listed
Luiz Augusto von Dentz [Thu, 11 Oct 2012 09:24:13 +0000 (11:24 +0200)]
obexd: Fix returning empty if messages was already listed

Once a message was already listed and inserted on the cache it could
not be listed again as the code was using the wrong key to lookup for
found messages then once we try to create the message again it fails
as the object already exists.

11 years agoobexd: Fix freeing apparam data on PBAP module
Luiz Augusto von Dentz [Tue, 9 Oct 2012 10:05:48 +0000 (12:05 +0200)]
obexd: Fix freeing apparam data on PBAP module

Invalid read of size 8
   at 0x40EC04: g_obex_apparam_free (gobex-apparam.c:362)
   by 0x41A66A: obc_transfer_free (transfer.c:272)
   by 0x413221: pending_request_free (session.c:163)
   by 0x413659: session_terminate_transfer (session.c:745)
   by 0x41A53E: xfer_complete (transfer.c:518)
   by 0x41B5D7: get_xfer_progress_first (transfer.c:562)
   by 0x409750: handle_response (gobex.c:948)
   by 0x40A609: incoming_data (gobex.c:1191)
   by 0x371D047824: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x371D047B57: ??? (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x371D047F51: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x40542F: main (main.c:175)
 Address 0x4f64510 is 0 bytes inside a block of size 8 free'd
   at 0x4A079AE: free (vg_replace_malloc.c:427)
   by 0x371D04D50E: g_free (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x416060: phonebook_size_callback (pbap.c:266)
   by 0x413651: session_terminate_transfer (session.c:743)
   by 0x41A53E: xfer_complete (transfer.c:518)
   by 0x41B5D7: get_xfer_progress_first (transfer.c:562)
   by 0x409750: handle_response (gobex.c:948)
   by 0x40A609: incoming_data (gobex.c:1191)
   by 0x371D047824: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x371D047B57: ??? (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x371D047F51: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x40542F: main (main.c:175)

11 years agoobexd: Fix not using port when it is set by the client
Luiz Augusto von Dentz [Tue, 9 Oct 2012 09:04:35 +0000 (11:04 +0200)]
obexd: Fix not using port when it is set by the client

If the client set a channel/port the code would just ignore and attempt
to discover the service anyway.

11 years agoobexd: Add implementation for UpdateInbox
Srinivasa Ragavan [Sat, 6 Oct 2012 13:52:09 +0000 (19:22 +0530)]
obexd: Add implementation for UpdateInbox

11 years agoobexd: Fix build when using --with-messages=tracker
Luiz Augusto von Dentz [Fri, 5 Oct 2012 08:55:41 +0000 (11:55 +0300)]
obexd: Fix build when using --with-messages=tracker

Commit 15b15167fb2dd82e2189cc1955def1818a7bc6a6 broke the build:

plugins/messages.c:324:42: error: unknown type name ‘messages_update_inbox_cb’
plugins/messages.c:331:5: error: unknown type name ‘messages_set_read_cb’
plugins/messages.c:337:6: error: unknown type name ‘messages_set_delete_cb’

11 years agoobexd: Add Message.SetProperty and Message.GetProperties implementation.
Srinivasa Ragavan [Thu, 4 Oct 2012 14:22:38 +0000 (19:52 +0530)]
obexd: Add Message.SetProperty and Message.GetProperties implementation.

11 years agoobexd: Update the file offset to the beginning after writing to the file
Srinivasa Ragavan [Thu, 4 Oct 2012 14:22:37 +0000 (19:52 +0530)]
obexd: Update the file offset to the beginning after writing to the file

When the transfer file is opened in O_RDWR mode, just after the contents are
written to the file, the file offset has to be set to the beginning of the
file. If not subsequent read fails. This patch fixes this.

11 years agoobexd: Make obc_transfer_put to accept NULL as filename
Luiz Augusto von Dentz [Tue, 2 Oct 2012 08:20:23 +0000 (11:20 +0300)]
obexd: Make obc_transfer_put to accept NULL as filename

In that case contents should be valid so the modules can use
obc_transfer_put to create temporary files.

11 years agoobexd: Avoid extra copies while passing apparam to transfer
Luiz Augusto von Dentz [Wed, 12 Sep 2012 11:28:31 +0000 (14:28 +0300)]
obexd: Avoid extra copies while passing apparam to transfer

By passing directly the reference to GObexApparam it is no longer
necessary to use intermediate buffers to pass data around.

11 years agoobexd: Fix not sending parameters to get message in map module
Luiz Augusto von Dentz [Tue, 11 Sep 2012 19:23:34 +0000 (22:23 +0300)]
obexd: Fix not sending parameters to get message in map module

Attachment and charset are mandatory, so Message.Get now takes an
additional boolean parameter which the user application should set
if it wants the attachments to be downloaded, charset is always set
to UTF8.

11 years agoobexd: Add MessageAccess.ListFilterFields
Luiz Augusto von Dentz [Fri, 7 Sep 2012 12:28:49 +0000 (15:28 +0300)]
obexd: Add MessageAccess.ListFilterFields

11 years agoobexd: Rename MessageAccess method GetMessagesListing to ListMessages
Luiz Augusto von Dentz [Tue, 28 Aug 2012 10:05:35 +0000 (13:05 +0300)]
obexd: Rename MessageAccess method GetMessagesListing to ListMessages

In addition to that add missing parsing of the filters

11 years agoobexd: Rename MessageAccess method GetFolderListing to ListFolders
Luiz Augusto von Dentz [Mon, 27 Aug 2012 08:13:49 +0000 (11:13 +0300)]
obexd: Rename MessageAccess method GetFolderListing to ListFolders

In addition to that add missing parsing of the filters.

11 years agoobexd: Use larger timeout first packet in transfers
Luiz Augusto von Dentz [Mon, 10 Sep 2012 08:30:31 +0000 (11:30 +0300)]
obexd: Use larger timeout first packet in transfers

This align the client timeout for GET operations with g_obex_get_req_pkt
which does use 60 seconds to cover for extra interaction during the first
packet.

11 years agoobexd: Unify callbacks for operations that only report status
Luiz Augusto von Dentz [Fri, 14 Sep 2012 10:15:10 +0000 (13:15 +0300)]
obexd: Unify callbacks for operations that only report status

This removes duplicated code.

11 years agoobexd: Add set delete status function
Sunil Kumar Behera [Thu, 13 Sep 2012 13:44:24 +0000 (19:14 +0530)]
obexd: Add set delete status function

This function will inform MAP server to modify
the delete status of a given message.

11 years agoobexd: Add set read status function
Sunil Kumar Behera [Thu, 13 Sep 2012 13:43:28 +0000 (19:13 +0530)]
obexd: Add set read status function

This function will inform MAP server to modify the
read status of a given message.

11 years agoobexd: Add support for MessageStatus
Sunil Kumar Behera [Thu, 13 Sep 2012 13:42:25 +0000 (19:12 +0530)]
obexd: Add support for MessageStatus

Add driver to support x-bt/messageStatus mimetype

11 years agoobexd: Move common code to pull_phonebook
Luiz Augusto von Dentz [Mon, 10 Sep 2012 08:02:58 +0000 (11:02 +0300)]
obexd: Move common code to pull_phonebook

11 years agoobexd: Remove deprecated methods from PhonebookAccess
Luiz Augusto von Dentz [Mon, 10 Sep 2012 08:02:56 +0000 (11:02 +0300)]
obexd: Remove deprecated methods from PhonebookAccess

SetFormat, SetOrder, SetFilter and GetFilter methods are no longer
necessary as other methods now take them as parameters to avoid round
trips.

11 years agoobexd: Add filters to PhonebookAccess.List and PhonebookAccess.Search
Luiz Augusto von Dentz [Mon, 10 Sep 2012 08:02:55 +0000 (11:02 +0300)]
obexd: Add filters to PhonebookAccess.List and PhonebookAccess.Search

This avoid D-Bus round trips and is more aligned with what has been
proposed for MessageAccess interface.

11 years agoobexd: Add filters to PhonebookAccess.Pull
Luiz Augusto von Dentz [Mon, 10 Sep 2012 08:02:54 +0000 (11:02 +0300)]
obexd: Add filters to PhonebookAccess.Pull

This avoid D-Bus round trips and is more aligned with what has been
proposed for MessageAccess interface.

11 years agoobexd: Add filters to Phonebook.PullAll
Luiz Augusto von Dentz [Mon, 10 Sep 2012 08:02:53 +0000 (11:02 +0300)]
obexd: Add filters to Phonebook.PullAll

This avoid D-Bus round trips and is more aligned with what has been
proposed for MessageAccess interface.

11 years agoobexd: Fix crash on map module
Srinivasa Ragavan [Wed, 29 Aug 2012 05:15:03 +0000 (10:45 +0530)]
obexd: Fix crash on map module

gboolean is expected to hold 0/1. But it is holding int return from
strcasecmp which crashes DBusMessage at:

_dbus_return_val_if_fail (*bool_p == 0 || *bool_p == 1, FALSE);

Trace:
0  0x00007ffff7328d95 in __GI_raise (sig=6) at raise.c:64
1  0x00007ffff732a2ab in __GI_abort () at abort.c:93
2  0x00007ffff78d0655 in _dbus_abort () at dbus-sysdeps.c:94
3  0x00007ffff78c75f1 in _dbus_warn_check_failed at dbus-internals.c:289
4  0x00007ffff78ba28b in dbus_message_iter_append_basic at dbus-message.c:2538
5  0x00000000004201c3 in append_variant at client/dbus.c:44
6  0x000000000042024e in obex_dbus_dict_append at client/dbus.c:65
7  0x000000000041dcc9 in parse_read at client/map.c:423
8  0x000000000041dfa7 in msg_element at client/map.c:518
9  0x00007ffff7b323b9 in emit_start_element at gmarkup.c:986
10 0x00007ffff7b33b44 in g_markup_parse_context_parse at gmarkup.c:1323
11 0x000000000041e1ad in message_listing_cb at client/map.c:586
12 0x000000000041744c in session_terminate_transfer client/session.c:743
13 0x00000000004174d7 in session_notify_complete at client/session.c:758
14 0x000000000041755a in transfer_complete at client/session.c:778
15 0x000000000041f57b in xfer_complete at client/transfer.c:521
16 0x000000000040efdf in transfer_complete at gobex/gobex-transfer.c:102
17 0x000000000040f418 in transfer_response at gobex/gobex-transfer.c:221
18 0x000000000040b320 in handle_response at gobex/gobex.c:948
19 0x000000000040bbc1 in incoming_data at gobex/gobex.c:1191
20 0x00007ffff7b2f94a in g_main_dispatch (context=0x62f130) at gmain.c:2515
21 g_main_context_dispatch (context=0x62f130) at gmain.c:3052
22 0x00007ffff7b2fd10 in g_main_context_iterate at gmain.c:3123
23 g_main_context_iterate at gmain.c:3060
24 0x00007ffff7b3010a in g_main_loop_run (loop=0x62e1b0) at gmain.c:3317
25 0x000000000041527d in main at client/main.c:175

11 years agoobexd: Remove redundant include errno.h
Syam Sidhardhan [Wed, 22 Aug 2012 16:35:54 +0000 (22:05 +0530)]
obexd: Remove redundant include errno.h

11 years agoobexd: Remove redundant include sys/stat.h
Syam Sidhardhan [Wed, 22 Aug 2012 16:35:53 +0000 (22:05 +0530)]
obexd: Remove redundant include sys/stat.h

11 years agoobexd: Add subject length parameter in GetMessageListing
Sunil Kumar Behera [Fri, 17 Aug 2012 15:08:17 +0000 (20:38 +0530)]
obexd: Add subject length parameter in GetMessageListing

Add subject length parameter to allow MAP server to
create subject as per MAP client length preference.

11 years agoobexd: Add offset parameter decription
Sunil Kumar Behera [Fri, 17 Aug 2012 15:06:41 +0000 (20:36 +0530)]
obexd: Add offset parameter decription

Add offset parameter description for
messages_get_messages_listing() function header

11 years agoobexd: Fix invalid oflag check
Sunil Kumar Behera [Fri, 17 Aug 2012 09:33:46 +0000 (15:03 +0530)]
obexd: Fix invalid oflag check

Change logic to check for O_WRONLY, as oflag is
created by an OR operation of O_WRONLY, O_CREAT and
O_TRUNC.
Message update is a PUT function, this check returns
bad response if GET is received.

11 years agoobexd: Remove map_ap.c
Luiz Augusto von Dentz [Thu, 9 Aug 2012 10:32:33 +0000 (13:32 +0300)]
obexd: Remove map_ap.c

It is no longer needed as MAP plugin is now using GObexApparam API

11 years agoobexd: Make use of GObexApparam API
Luiz Augusto von Dentz [Thu, 9 Aug 2012 10:32:32 +0000 (13:32 +0300)]
obexd: Make use of GObexApparam API

11 years agoobexd: Make use of GObexApparam API
Luiz Augusto von Dentz [Thu, 9 Aug 2012 10:32:31 +0000 (13:32 +0300)]
obexd: Make use of GObexApparam API

11 years agoobexd: Port PBAP module to use GObexApparam
Luiz Augusto von Dentz [Thu, 9 Aug 2012 10:32:30 +0000 (13:32 +0300)]
obexd: Port PBAP module to use GObexApparam

11 years agoobexd: Fix pbap_select using absolute path with known locations
Ludek Finstrle [Thu, 9 Aug 2012 16:07:33 +0000 (18:07 +0200)]
obexd: Fix pbap_select using absolute path with known locations

pbap_select has to use absolute path with known location to support
repeatable pbap_select calls. In other way the second call fails.

11 years agoobexd: Fix possible memory leak in handling of location
Luiz Augusto von Dentz [Thu, 9 Aug 2012 10:47:55 +0000 (13:47 +0300)]
obexd: Fix possible memory leak in handling of location

path was not being freed before returning, the is also simplified so
the error is now given in the return of the function.

11 years agoobexd: Fix possible memory leak in bluetooth driver
Luiz Augusto von Dentz [Tue, 7 Aug 2012 13:26:38 +0000 (16:26 +0300)]
obexd: Fix possible memory leak in bluetooth driver

2,210 (64 direct, 2,146 indirect) bytes in 2 blocks are definitely lost in loss record 150 of 155
   at 0x4A0884D: malloc (vg_replace_malloc.c:263)
   by 0x3B2900F8A1: sdp_create (sdp.c:3656)
   by 0x3B2900FAE0: sdp_connect (sdp.c:4604)
   by 0x415902: adapter_reply (bluetooth.c:421)
   by 0x3B22C0C429: ??? (in /usr/lib64/libdbus-1.so.3.5.6)
   by 0x3B22C0F5E9: dbus_connection_dispatch (in /usr/lib64/libdbus-1.so.3.5.6)
   by 0x4059A7: message_dispatch (mainloop.c:76)
   by 0x32CD64822A: ??? (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x32CD647694: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x32CD6479C7: ??? (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x32CD647DC1: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x40567F: main (main.c:175)

11 years agoobexd: Make handle of location more clear
Luiz Augusto von Dentz [Fri, 27 Jul 2012 14:56:57 +0000 (17:56 +0300)]
obexd: Make handle of location more clear

Add proper defines for supported paths and convert relative
path absolute to align with PBAP paths.

11 years agoobexd: phonebook: Replace magic strings for phonebook names and folders
Harald Schmitt [Wed, 18 Jul 2012 14:53:08 +0000 (16:53 +0200)]
obexd: phonebook: Replace magic strings for phonebook names and folders

11 years agoobexd: Fix phonebook contacts query
Harald Schmitt [Wed, 18 Jul 2012 14:53:07 +0000 (16:53 +0200)]
obexd: Fix phonebook contacts query

At the moment IRMC fails to connect for phonebook_ebook and
phonebook_tracker usage because the name parameter for phonebook_pull
is not an absolute path.

11 years agoobexd: Add Message.Get implementation
Luiz Augusto von Dentz [Tue, 3 Jul 2012 18:28:13 +0000 (21:28 +0300)]
obexd: Add Message.Get implementation

11 years agoobexd: Use filter instead of dummy as argument name in MAP
Luiz Augusto von Dentz [Tue, 3 Jul 2012 18:28:11 +0000 (21:28 +0300)]
obexd: Use filter instead of dummy as argument name in MAP

This is aligned with the documentation that uses filter as well.

11 years agoobexd: Change MessageAccess.GetMessageListing to not return raw xml
Luiz Augusto von Dentz [Tue, 3 Jul 2012 18:28:08 +0000 (21:28 +0300)]
obexd: Change MessageAccess.GetMessageListing to not return raw xml

This parses the response and return as a list of dictionary where each
entry is a message and its properties,

11 years agoobexd: Change MessageAccess.GetFolderListing to not return raw xml
Luiz Augusto von Dentz [Tue, 3 Jul 2012 18:28:05 +0000 (21:28 +0300)]
obexd: Change MessageAccess.GetFolderListing to not return raw xml

This parses the response and return as a list of dictionary where each
entry is a folder and its properties, similar to what
FileTransfer.ListFolder does.

11 years agoobexd: Fix wrong signature of MessageAccess.SetFolder
Luiz Augusto von Dentz [Wed, 20 Jun 2012 10:51:32 +0000 (13:51 +0300)]
obexd: Fix wrong signature of MessageAccess.SetFolder

D-Bus string signature is 's' not 'string'

11 years agoobexd: Fix some common spelling errors
Szymon Janc [Wed, 13 Jun 2012 20:49:23 +0000 (22:49 +0200)]
obexd: Fix some common spelling errors

Fix spelling errors reported by codespell.

11 years agoobexd: Fix dead assignments
Szymon Janc [Wed, 13 Jun 2012 20:49:21 +0000 (22:49 +0200)]
obexd: Fix dead assignments

Values stored are never read.

11 years agoobexd: Fix error returning in obc_transfer_put
Szymon Janc [Wed, 13 Jun 2012 20:49:19 +0000 (22:49 +0200)]
obexd: Fix error returning in obc_transfer_put

Always set error on failure in obc_transfer_put. This is expected by
callers and will avoid possible NULL pointer dereference.

Also fix improper use of errno variable (calling error may modify it)
and some dead assignments to perr.

11 years agoobexd: Use g_malloc0 in get_filter_strs
Szymon Janc [Wed, 13 Jun 2012 20:49:18 +0000 (22:49 +0200)]
obexd: Use g_malloc0 in get_filter_strs

Use g_malloc0 instead of g_try_malloc0 to allocate list. All users
expects to get valid pointer from it anyway. Also size of allocated
memory is small.

11 years agoobexd: Fix use of uninitialized count variable
Szymon Janc [Wed, 13 Jun 2012 20:49:17 +0000 (22:49 +0200)]
obexd: Fix use of uninitialized count variable

If opendir() call fails count would be passed to callback
uninitialized.

11 years agoobexd: Fix memory leak in bluetooth driver
Luiz Augusto von Dentz [Wed, 13 Jun 2012 08:31:51 +0000 (11:31 +0300)]
obexd: Fix memory leak in bluetooth driver

384 (184 direct, 200 indirect) bytes in 1 blocks are definitely lost in loss record 141 of 157
   at 0x4A0884D: malloc (vg_replace_malloc.c:263)
   by 0x392E217815: ??? (in /usr/lib64/libdbus-1.so.3.5.6)
   by 0x392E218632: dbus_message_new_method_call (in /usr/lib64/libdbus-1.so.3.5.6)
   by 0x413AD3: send_method_call (bluetooth.c:87)
   by 0x414933: manager_reply (bluetooth.c:496)
   by 0x392E20C429: ??? (in /usr/lib64/libdbus-1.so.3.5.6)
   by 0x392E20F5E9: dbus_connection_dispatch (in /usr/lib64/libdbus-1.so.3.5.6)
   by 0x405767: message_dispatch (mainloop.c:76)
   by 0x369E04827A: ??? (in /usr/lib64/libglib-2.0.so.0.3200.3)
   by 0x369E0476E4: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3200.3)
   by 0x369E047A17: ??? (in /usr/lib64/libglib-2.0.so.0.3200.3)
   by 0x369E047E11: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3200.3)

11 years agoobexd: Fix cancellation of queued transfers
Mikel Astiz [Tue, 12 Jun 2012 12:10:26 +0000 (14:10 +0200)]
obexd: Fix cancellation of queued transfers

Cancelling queued (not started yet) transfers should not fail. Instead,
they must be removed from the queue, so we just need to call the
transfer callback.

11 years agoobexd: Remove obc_transfer_abort
Mikel Astiz [Tue, 12 Jun 2012 12:10:25 +0000 (14:10 +0200)]
obexd: Remove obc_transfer_abort

Refactor the code to remove function obc_transfer_abort, which is used
only once and is anyway coupled to the D-Bus API.

11 years agoobexd: Fix possible unreplied D-Bus message
Mikel Astiz [Tue, 12 Jun 2012 12:10:24 +0000 (14:10 +0200)]
obexd: Fix possible unreplied D-Bus message

If a previous cancel request is in progress, a second cancel request
should fail.

This by the way fixes unreplied D-Bus messages.

11 years agoobexd: Fix using org.openobex.Error
Luiz Augusto von Dentz [Mon, 11 Jun 2012 10:30:39 +0000 (13:30 +0300)]
obexd: Fix using org.openobex.Error

In addition use define so it is easier to change this in future

11 years agoobexd: Use session path as prefix for transfer path
Luiz Augusto von Dentz [Thu, 7 Jun 2012 08:31:13 +0000 (11:31 +0300)]
obexd: Use session path as prefix for transfer path

This should make it easier to identify to which session the transfer
belongs.

11 years agoobexd: Fix not using connection passed to obc_transfer_register
Luiz Augusto von Dentz [Thu, 7 Jun 2012 08:31:12 +0000 (11:31 +0300)]
obexd: Fix not using connection passed to obc_transfer_register

Make use of the connection parameter instead of assuming the connection
will always be to the session bus.

11 years agoobexd: Rename Transfer interface to org.bluez.obex.Transfer
Luiz Augusto von Dentz [Fri, 1 Jun 2012 11:08:01 +0000 (14:08 +0300)]
obexd: Rename Transfer interface to org.bluez.obex.Transfer

11 years agoobexd: Rename MessageAccess interface to org.bluez.obex.MessageAccess
Luiz Augusto von Dentz [Fri, 1 Jun 2012 10:40:11 +0000 (13:40 +0300)]
obexd: Rename MessageAccess interface to org.bluez.obex.MessageAccess

11 years agoobexd: Rename Synchronization interface to org.bluez.obex.Synchronization
Luiz Augusto von Dentz [Fri, 1 Jun 2012 10:39:20 +0000 (13:39 +0300)]
obexd: Rename Synchronization interface to org.bluez.obex.Synchronization

11 years agoobexd: Rename PhonebookAccess interface to org.bluez.obex.PhonebookAccess
Luiz Augusto von Dentz [Fri, 1 Jun 2012 10:37:50 +0000 (13:37 +0300)]
obexd: Rename PhonebookAccess interface to org.bluez.obex.PhonebookAccess

11 years agoobexd: Rename FileTransfer interface to org.bluez.obex.FileTransfer
Luiz Augusto von Dentz [Fri, 1 Jun 2012 10:36:09 +0000 (13:36 +0300)]
obexd: Rename FileTransfer interface to org.bluez.obex.FileTransfer

11 years agoobexd: Rename ObjectPush interface to org.bluez.obex.ObjectPush
Luiz Augusto von Dentz [Fri, 1 Jun 2012 10:33:09 +0000 (13:33 +0300)]
obexd: Rename ObjectPush interface to org.bluez.obex.ObjectPush

11 years agoobexd: Rename session interface to org.bluez.obex.Session
Luiz Augusto von Dentz [Fri, 1 Jun 2012 10:27:44 +0000 (13:27 +0300)]
obexd: Rename session interface to org.bluez.obex.Session

The base is also changed to /org/bluez/obex to follow the new namespace

11 years agoobexd: Change namespace to org.bluez.obex.client
Luiz Augusto von Dentz [Fri, 1 Jun 2012 10:23:36 +0000 (13:23 +0300)]
obexd: Change namespace to org.bluez.obex.client