Commit: c3717e342076126f2dd4b9b8dba81e86c14c1972
Parent: 1847ffb1b66778558a06a3d6893cfa67cab33ce2
Author: Anderson Lizardo <anderson.lizardo@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@nokia.com>
Date: 2011-02-24 20:41:47
Tree: aaf740acdf1ed529253db6a4ba90f895fc90527f

Add read/write callbacks to attribute server These callbacks will allow profiles to act before an attribute is read and after it is written, to e.g. update the attribute value to/from an external source. Note that by the time the callback is called, the necessary security checks (attribute permissions, authentication and encryption) were already performed by the core attribute server. The callback can optionally return an ATT status code, which will be sent to the client using an Error Response PDU.

Diffstat

M attrib/att.h | 3 +++
M src/attrib-server.c | 29 ++++++++++++++++++++++++++- - -
M src/attrib-server.h | 4 ++- -

3 files changed, 31 insertions(+), 5 deletions(-)

View Full Diff | Patch