From: Michal MalĂ˝ Date: Sun, 9 Aug 2015 16:51:06 +0000 (+0200) Subject: Allow for arbitrary data to be stored with KLGD commands. X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=627f345f38f043dd1bd6306bc22804656b6a7451;p=KLGD.git Allow for arbitrary data to be stored with KLGD commands. --- 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 {