summaryrefslogtreecommitdiff
path: root/android/avctp.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-02-28 11:36:00 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-03-04 11:32:42 +0200
commit7efeeb014e124cb2ec7ceb9f7953e4f0d09f403b (patch)
tree765862964b8448e5f1c35642cfc4dbfd83c5a4c6 /android/avctp.h
parentec6e9a9e1368a12301ef54bfbb9ec4c1f4b2372d (diff)
downloadbluez-7efeeb014e124cb2ec7ceb9f7953e4f0d09f403b.tar.gz
android/avctp: Make handler return ssize_t
This makes possible to return errors such as -EAGAIN to indicate the request would block and a response will be sent asynchronously.
Diffstat (limited to 'android/avctp.h')
-rw-r--r--android/avctp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/avctp.h b/android/avctp.h
index dfa0ca667..2f419a23c 100644
--- a/android/avctp.h
+++ b/android/avctp.h
@@ -113,7 +113,7 @@ struct avctp;
typedef bool (*avctp_passthrough_cb) (struct avctp *session,
uint8_t op, bool pressed,
void *user_data);
-typedef size_t (*avctp_control_pdu_cb) (struct avctp *session,
+typedef ssize_t (*avctp_control_pdu_cb) (struct avctp *session,
uint8_t transaction, uint8_t *code,
uint8_t *subunit, uint8_t *operands,
size_t operand_count, void *user_data);