]> Devoid-pointer.net GitWeb - KLGD.git/commitdiff
Allow for arbitrary data to be stored with KLGD commands.
authorMichal Malý <madcatxster@devoid-pointer.net>
Sun, 9 Aug 2015 16:51:06 +0000 (18:51 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Sun, 9 Aug 2015 16:51:06 +0000 (18:51 +0200)
klgd.h

diff --git a/klgd.h b/klgd.h
index c01e5ae1c000e58a26be31ef6f78a0e6a9598177..4716d9895a553c25b380867167ecc853c66f5942 100644 (file)
--- 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 {