summaryrefslogtreecommitdiff
path: root/include/rfid
diff options
context:
space:
mode:
Diffstat (limited to 'include/rfid')
-rw-r--r--include/rfid/rfid_protocol.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/rfid/rfid_protocol.h b/include/rfid/rfid_protocol.h
index 93b89c3..f9db318 100644
--- a/include/rfid/rfid_protocol.h
+++ b/include/rfid/rfid_protocol.h
@@ -28,10 +28,13 @@ struct rfid_protocol {
struct rfid_protocol_handle {
struct rfid_layer2_handle *l2h;
+ struct rfid_protocol *proto;
union {
struct tcl_handle tcl;
- } priv;
- struct rfid_protocol *proto;
+ } priv; /* priv has to be last, since
+ * it could contain additional
+ * private data over the end of
+ * sizeof(priv). */
};
struct rfid_protocol_handle *
personal git repositories of Harald Welte. Your mileage may vary