OSDN Git Service

android-x86/external-bluetooth-bluez.git
11 years agoaudio: Fix interface names
Vinicius Costa Gomes [Wed, 5 Dec 2012 23:18:09 +0000 (20:18 -0300)]
audio: Fix interface names

In some places, the old names of the interfaces were still being used.
So we update them to use the new names.

11 years agomedia: Fix some wrong interface names
Mikel Astiz [Thu, 6 Dec 2012 09:24:45 +0000 (10:24 +0100)]
media: Fix some wrong interface names

Trivially fix some wrong interface names introduced by commit
3aa15b56dca27a73f6bc34467ba0ce4c85ee2d9a.

11 years agoTODO: Update to current status
Johan Hedberg [Thu, 6 Dec 2012 08:55:53 +0000 (10:55 +0200)]
TODO: Update to current status

11 years agomedia: Add version suffix to all media interfaces
Mikel Astiz [Wed, 5 Dec 2012 16:15:34 +0000 (17:15 +0100)]
media: Add version suffix to all media interfaces

Append the version number to all D-Bus interface names in the Media API.

11 years agomedia: Trivial style fix
Mikel Astiz [Wed, 5 Dec 2012 16:15:33 +0000 (17:15 +0100)]
media: Trivial style fix

No whitespace should exist before parenthesis close.

11 years agomedia: Add MediaTransport.TryAcquire()
Mikel Astiz [Wed, 5 Dec 2012 16:15:32 +0000 (17:15 +0100)]
media: Add MediaTransport.TryAcquire()

Split the Acquire() method in two parts so that the optional acquires,
formerly represented as a "?" flag in the accesstype parameter of
Acquire(), are now implemented in TryAcquire().

11 years agomedia: Remove transport owner list
Mikel Astiz [Wed, 5 Dec 2012 16:15:31 +0000 (17:15 +0100)]
media: Remove transport owner list

Transports now have zero or one owners, so there is no need to maintain
a list any more.

11 years agomedia: Remove internal transport locks
Mikel Astiz [Wed, 5 Dec 2012 16:15:30 +0000 (17:15 +0100)]
media: Remove internal transport locks

The internal transport_lock_t is not needed any more since transports
are now always acquired with read and write permissions.

11 years agomedia: Remove transport access type from D-Bus API
Mikel Astiz [Wed, 5 Dec 2012 16:15:29 +0000 (17:15 +0100)]
media: Remove transport access type from D-Bus API

There is no known use-case making use of these access types and
therefore the Media API can be simplified.

From now on, the transport will always be acquired with read and write
access rights.

11 years agol2test: Add support to test auto select PSM
Syam Sidhardhan [Wed, 5 Dec 2012 16:21:41 +0000 (21:51 +0530)]
l2test: Add support to test auto select PSM

This patch enable us to test the auto select PSM by passing
PSM value as 0.

Ex: l2test -d -P 0
l2test[2585]: Waiting for connection on psm 4099 ...

11 years agohciconfig: Remove putkey command
Frédéric Danis [Wed, 5 Dec 2012 11:43:54 +0000 (12:43 +0100)]
hciconfig: Remove putkey command

With new storage architecture legacy storage "linkkeys"
file doesn't exist anymore.

11 years agoUse entire include path for gobex.h
Lucas De Marchi [Wed, 5 Dec 2012 11:22:55 +0000 (09:22 -0200)]
Use entire include path for gobex.h

11 years agoReorder btio.h includes
Lucas De Marchi [Wed, 5 Dec 2012 11:22:54 +0000 (09:22 -0200)]
Reorder btio.h includes

Let "#include <btio/btio.h>" together with other includes using '<'
rather than '"'.

11 years agoUse the entire include path for btio.h
Lucas De Marchi [Wed, 5 Dec 2012 11:22:53 +0000 (09:22 -0200)]
Use the entire include path for btio.h

11 years agoUse the entire include path for gdbus.h
Lucas De Marchi [Wed, 5 Dec 2012 11:22:52 +0000 (09:22 -0200)]
Use the entire include path for gdbus.h

11 years agobuild-sys: Add missing force arg to symlink creation
Lucas De Marchi [Wed, 5 Dec 2012 11:22:51 +0000 (09:22 -0200)]
build-sys: Add missing force arg to symlink creation

If we don't force the symlink creation the build fails when the link
already exists. This happens if the rule to create the link is triggered
again because the file it points to changed. This is the case when doing
incremental builds and we modified the file.

$ make
$ touch lib/cmtp.h
$ make
  GEN      lib/bluetooth/cmtp.h
ln: failed to create symbolic link ‘lib/bluetooth/cmtp.h’: File exists
make: *** [lib/bluetooth/cmtp.h] Error 1
make: *** Waiting for unfinished jobs....

11 years agotest: Fix re-declaration of "encrypt" symbol
Johan Hedberg [Wed, 5 Dec 2012 15:21:54 +0000 (17:21 +0200)]
test: Fix re-declaration of "encrypt" symbol

test/l2test.c:106:12: error: ‘encrypt’ redeclared as different kind of symbol
In file included from test/l2test.c:30:0:
/usr/include/unistd.h:1147:13: note: previous declaration of ‘encrypt’ was here

11 years agoEnsure config.h is included by using CPPFLAGS
Lucas De Marchi [Wed, 5 Dec 2012 11:22:50 +0000 (09:22 -0200)]
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.

11 years agobuild-sys: Define _GNU_SOURCE in config.h
Lucas De Marchi [Wed, 5 Dec 2012 11:22:49 +0000 (09:22 -0200)]
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.

11 years agodbus: Rename to org.bluez.Adapter1
Mikel Astiz [Wed, 5 Dec 2012 12:51:42 +0000 (13:51 +0100)]
dbus: Rename to org.bluez.Adapter1

Trivially add the numbering suffix to org.bluez.Adapter according to
the proposal for BlueZ 5.

11 years agodbus: Rename to org.bluez.Device1
Mikel Astiz [Wed, 5 Dec 2012 12:51:41 +0000 (13:51 +0100)]
dbus: Rename to org.bluez.Device1

Trivially add the numbering suffix to org.bluez.Device according to
the proposal for BlueZ 5.

11 years agoadapter: Remove FindDevice method from D-Bus API
Mikel Astiz [Wed, 5 Dec 2012 12:51:40 +0000 (13:51 +0100)]
adapter: Remove FindDevice method from D-Bus API

ObjectManager.GetManagedObjects() returns all devices and their
corresponding properties to any interested client. The device address is
included in the property dictionary and therefore having such a
FindDevice method is an unnecessary duplication.

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

The method is now deprecated and thus the replacement utility library
should be used in the test scripts.

11 years agoadapter: Remove redundant Devices property
Mikel Astiz [Wed, 5 Dec 2012 12:51:38 +0000 (13:51 +0100)]
adapter: Remove redundant Devices property

The ObjectManager interface already reports the list of devices, so the
the property can be entirely removed.

11 years agoadapter: Remove DeviceCreated/DeviceRemoved signals
Mikel Astiz [Wed, 5 Dec 2012 12:51:37 +0000 (13:51 +0100)]
adapter: Remove DeviceCreated/DeviceRemoved signals

The Adapter interface already reports changes in the device list in form
of property changes, so there is no need to keep these two signals.

11 years agotest: Add helper function to find devices
Mikel Astiz [Wed, 5 Dec 2012 12:51:36 +0000 (13:51 +0100)]
test: Add helper function to find devices

Add a helper function to the utility library as an alternative to the
convenience method Adapter.FindDevice() in the D-Bus API.

11 years agotest: Use ObjectManager instead of Devices property
Mikel Astiz [Wed, 5 Dec 2012 12:51:35 +0000 (13:51 +0100)]
test: Use ObjectManager instead of Devices property

Use the objects and interfaces reported by the ObjectManager in order
to list the available devices per adapter.

11 years agodbus: Remove org.bluez.Manager
Mikel Astiz [Wed, 5 Dec 2012 12:51:34 +0000 (13:51 +0100)]
dbus: Remove org.bluez.Manager

After the decision to drop the "default-adapter" feature in the D-Bus
API, the org.bluez.Manager interface can be entirely dropped since it
has been replaced by the ObjectManager.

11 years agotest: Use ObjectManager instead of Adapters property
Mikel Astiz [Wed, 5 Dec 2012 12:51:33 +0000 (13:51 +0100)]
test: Use ObjectManager instead of Adapters property

Use the objects and interfaces reported by the ObjectManager in order
to list the available adapters.

11 years agotest: Update test-manager script to ObjectManager
Mikel Astiz [Wed, 5 Dec 2012 12:51:32 +0000 (13:51 +0100)]
test: Update test-manager script to ObjectManager

Make the script compatible with the new API provided by the
ObjectManager interface.

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.