OSDN Git Service

gatt: Assign write callback for external services
authorClaudio Takahasi <claudio.takahasi@openbossa.org>
Mon, 24 Mar 2014 13:30:03 +0000 (10:30 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 24 Mar 2014 13:37:05 +0000 (15:37 +0200)
commit9f30381f3120ce7ea1dc65d7ba473d1e76619499
tree165e6f0e94ab0e0c59d308a0d10868c1a3e0acde
parentfb449723cb766d759291b2ecf34fbb44a155eb10
gatt: Assign write callback for external services

This patch adds the callback for writing the external characteristic
value. Internally, GDBusProxy implementation calls Set method of the
"Value" property. At the moment, potential errors returned by the
external service implementation are being ignored.

The ATT operation (Write Command or Request) is not exposed to the
external service implementation. GATT/GDBusProxy handles possible
DBus errors returned, and notify the core using the callbacks informed.
Write Command doesn't have callback since it doesn't return ATT errors.
src/gatt-dbus.c