diff options
author | Jakub Tyszkowski <jakub.tyszkowski@tieto.com> | 2014-03-27 15:03:28 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-03-28 14:24:22 +0200 |
commit | 1e11df43484d44284a42f02a95bc7c04fd81322f (patch) | |
tree | 6ba27364b56c5342a94f414f300de30ca95e6121 /attrib/gatt.h | |
parent | 763b079dd86d8f86a67ceabccff68f18cadeaf68 (diff) | |
download | bluez-1e11df43484d44284a42f02a95bc7c04fd81322f.tar.gz |
attrib: Use const source data pointer for write
Source buffer for write operations should be immutable.
Diffstat (limited to 'attrib/gatt.h')
-rw-r--r-- | attrib/gatt.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/attrib/gatt.h b/attrib/gatt.h index a11e4734d..c65bf6c0d 100644 --- a/attrib/gatt.h +++ b/attrib/gatt.h @@ -80,15 +80,15 @@ guint gatt_discover_char(GAttrib *attrib, uint16_t start, uint16_t end, guint gatt_read_char(GAttrib *attrib, uint16_t handle, GAttribResultFunc func, gpointer user_data); -guint gatt_write_char(GAttrib *attrib, uint16_t handle, uint8_t *value, +guint gatt_write_char(GAttrib *attrib, uint16_t handle, const uint8_t *value, size_t vlen, GAttribResultFunc func, gpointer user_data); guint gatt_discover_char_desc(GAttrib *attrib, uint16_t start, uint16_t end, GAttribResultFunc func, gpointer user_data); -guint gatt_write_cmd(GAttrib *attrib, uint16_t handle, uint8_t *value, int vlen, - GDestroyNotify notify, gpointer user_data); +guint gatt_write_cmd(GAttrib *attrib, uint16_t handle, const uint8_t *value, + int vlen, GDestroyNotify notify, gpointer user_data); guint gatt_read_char_by_uuid(GAttrib *attrib, uint16_t start, uint16_t end, bt_uuid_t *uuid, GAttribResultFunc func, |