diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-05 20:01:28 +0800 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-05 15:11:50 +0300 |
commit | 3b3e88678a5fd117897178c9dc53345781661a60 (patch) | |
tree | 49bec97ff763e51fc736a3f44337a473710dcfc2 /attrib/att.h | |
parent | 6c5efac68473eddce0624c48aef92af6eca9bac4 (diff) | |
download | bluez-3b3e88678a5fd117897178c9dc53345781661a60.tar.gz |
gattrib: Fix command timeout handling
This patch fixes command timeout handling. Previously attrib_destroy was
explicitly called which ignored any reference holders. This patch fixes
the issue by first passing errors to command callbacks and after that
marking the GAttrib object as stale so no further operations can be
done.
Diffstat (limited to 'attrib/att.h')
-rw-r--r-- | attrib/att.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/attrib/att.h b/attrib/att.h index d12a7f221..8979c9567 100644 --- a/attrib/att.h +++ b/attrib/att.h @@ -72,6 +72,8 @@ #define ATT_ECODE_INSUFF_RESOURCES 0x11 /* Application error */ #define ATT_ECODE_IO 0xFF +#define ATT_ECODE_TIMEOUT 0xFE +#define ATT_ECODE_ABORTED 0xFD /* Characteristic Property bit field */ #define ATT_CHAR_PROPER_BROADCAST 0x01 |