diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-02-28 11:36:00 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-03-04 11:32:42 +0200 |
commit | 7efeeb014e124cb2ec7ceb9f7953e4f0d09f403b (patch) | |
tree | 765862964b8448e5f1c35642cfc4dbfd83c5a4c6 /unit/test-avctp.c | |
parent | ec6e9a9e1368a12301ef54bfbb9ec4c1f4b2372d (diff) | |
download | bluez-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 'unit/test-avctp.c')
-rw-r--r-- | unit/test-avctp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unit/test-avctp.c b/unit/test-avctp.c index be1dfd741..07597317d 100644 --- a/unit/test-avctp.c +++ b/unit/test-avctp.c @@ -227,7 +227,7 @@ static void execute_context(struct context *context) destroy_context(context); } -static size_t handler(struct avctp *session, +static ssize_t handler(struct avctp *session, uint8_t transaction, uint8_t *code, uint8_t *subunit, uint8_t *operands, size_t operand_count, void *user_data) |