From: Szymon Janc <szymon.janc@tieto.com>
To: linux-bluetooth@vger.kernel.org
Cc: Szymon Janc <szymon.janc@tieto.com>
Subject: [PATCH v3 2/6] android: Define helper payload field in hal_msg_hdr
Date: Tue, 22 Oct 2013 14:46:09 +0200 [thread overview]
Message-ID: <1382445973-8285-2-git-send-email-szymon.janc@tieto.com> (raw)
In-Reply-To: <1382445973-8285-1-git-send-email-szymon.janc@tieto.com>
This will allow for convenient access to payload.
---
android/hal-msg.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 9dcfbf6..a1b539f 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -29,6 +29,7 @@ struct hal_msg_hdr {
uint8_t service_id;
uint8_t opcode;
uint16_t len;
+ uint8_t payload[0];
} __attribute__((packed));
#define HAL_SERVICE_ID_CORE 0
--
1.8.4
next prev parent reply other threads:[~2013-10-22 12:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-22 12:46 [PATCH v3 1/6] android/hal: Make hal.h self contained Szymon Janc
2013-10-22 12:46 ` Szymon Janc [this message]
2013-10-22 12:46 ` [PATCH v3 3/6] android: Fix non-existing event definition Szymon Janc
2013-10-22 12:46 ` [PATCH v3 4/6] android: Define minimum legal notification event ID Szymon Janc
2013-10-22 12:46 ` [PATCH v3 5/6] android/hal: Add initial code for notification handling Szymon Janc
2013-10-22 12:46 ` [PATCH v3 6/6] android/hal: Add initial support for handling adapter notifications Szymon Janc
2013-10-22 13:17 ` [PATCH v3 1/6] android/hal: Make hal.h self contained Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1382445973-8285-2-git-send-email-szymon.janc@tieto.com \
--to=szymon.janc@tieto.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox