diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2011-11-07 10:59:35 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2011-11-14 20:45:34 +0200 |
commit | f2ec605b58468bc0db3550d25ae22fb6714ac0e7 (patch) | |
tree | 35826a04a8b992d701ddeb34989fce4a060a4df4 /src/storage.h | |
parent | a267bc2dcd37e9c09bc77faf268e7ff4e2e6040e (diff) | |
download | bluez-f2ec605b58468bc0db3550d25ae22fb6714ac0e7.tar.gz bluez-f2ec605b58468bc0db3550d25ae22fb6714ac0e7.tar.xz bluez-f2ec605b58468bc0db3550d25ae22fb6714ac0e7.zip |
Add storage functions to deal with CCC
CCC (Client Characteristic Configuration) is used to allow configuration
whether to send updates about an characteristic value.
Diffstat (limited to 'src/storage.h')
-rw-r--r-- | src/storage.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/storage.h b/src/storage.h index dbe717f6..1cb36379 100644 --- a/src/storage.h +++ b/src/storage.h @@ -83,6 +83,10 @@ char *read_device_characteristics(const bdaddr_t *sba, const bdaddr_t *dba, int write_device_attribute(const bdaddr_t *sba, const bdaddr_t *dba, uint16_t handle, const char *chars); int read_device_attributes(const bdaddr_t *sba, textfile_cb func, void *data); +int read_device_ccc(bdaddr_t *local, bdaddr_t *peer, uint16_t handle, + uint16_t *value); +int write_device_ccc(bdaddr_t *local, bdaddr_t *peer, uint16_t handle, + uint16_t value); #define PNP_UUID "00001200-0000-1000-8000-00805f9b34fb" |