]> Devoid-pointer.net GitWeb - KLGD.git/commitdiff
Use more flexible format of user data in klgd_command struct
authorMichal Malý <madcatxster@devoid-pointer.net>
Wed, 12 Aug 2015 08:53:55 +0000 (10:53 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Wed, 12 Aug 2015 08:53:55 +0000 (10:53 +0200)
klgd.h

diff --git a/klgd.h b/klgd.h
index 3a3c0d429bebe3bc5faca081fd0dc3f204b59ef5..313465657faaea9938a7bcdc97e24b02f791ee56 100644 (file)
--- a/klgd.h
+++ b/klgd.h
@@ -12,7 +12,9 @@ struct klgd_command {
        __u8 * const bytes;
        size_t length;
        union {
-               u32 data[2];
+               u32 ldata[2];
+               u16 sdata[4];
+               u8  cdata[8];
                void *ptr;
        } user;
 };