diff options
author | Bruna Moreira <bruna.moreira@openbossa.org> | 2011-03-17 10:55:17 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-03-18 11:14:35 +0200 |
commit | 68887c21336e5b9d964139b6b0573e86fd0aaed1 (patch) | |
tree | d77b4400a7f36992edc0a07102363b7f28b78ac8 /attrib/gattrib.h | |
parent | f773053e55c5690736267cb66a8e2461ac389890 (diff) | |
download | bluez-68887c21336e5b9d964139b6b0573e86fd0aaed1.tar.gz |
Add internal buffer to GAttrib struct
The new buffer is allocated in g_attrib_new() and it will be used to
send/receive PDUs. The buffer size is the MTU read from L2CAP channel
limited to ATT_MAX_MTU. Functions to handle the buffer size were also
created.
Diffstat (limited to 'attrib/gattrib.h')
-rw-r--r-- | attrib/gattrib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/attrib/gattrib.h b/attrib/gattrib.h index f25208dcb..4c49879b3 100644 --- a/attrib/gattrib.h +++ b/attrib/gattrib.h @@ -68,6 +68,9 @@ guint g_attrib_register(GAttrib *attrib, guint8 opcode, gboolean g_attrib_is_encrypted(GAttrib *attrib); +uint8_t *g_attrib_get_buffer(GAttrib *attrib, int *len); +gboolean g_attrib_set_mtu(GAttrib *attrib, int mtu); + gboolean g_attrib_unregister(GAttrib *attrib, guint id); gboolean g_attrib_unregister_all(GAttrib *attrib); |