From 627f345f38f043dd1bd6306bc22804656b6a7451 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Sun, 9 Aug 2015 18:51:06 +0200 Subject: [PATCH] Allow for arbitrary data to be stored with KLGD commands. --- klgd.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/klgd.h b/klgd.h index c01e5ae..4716d98 100644 --- a/klgd.h +++ b/klgd.h @@ -1,7 +1,16 @@ - +/** + * + * struct klgd_command + * @bytes: Payload + * @length: Number of bytes + * @user: Arbitrary data that are not to be sent to the device. + * This data will not be free'd automatically when the command + * stream gets disposed of. + */ struct klgd_command { __u8 * const bytes; size_t length; + void *user; }; struct klgd_command_stream { -- 2.43.5