From f2ec605b58468bc0db3550d25ae22fb6714ac0e7 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Mon, 7 Nov 2011 10:59:35 -0300 Subject: Add storage functions to deal with CCC CCC (Client Characteristic Configuration) is used to allow configuration whether to send updates about an characteristic value. --- src/storage.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/storage.h') 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" -- cgit v1.2.3