summaryrefslogtreecommitdiff
path: root/kslog/kslog_cli/kslog.h
diff options
context:
space:
mode:
Diffstat (limited to 'kslog/kslog_cli/kslog.h')
-rw-r--r--kslog/kslog_cli/kslog.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/kslog/kslog_cli/kslog.h b/kslog/kslog_cli/kslog.h
new file mode 100644
index 0000000..4db963c
--- /dev/null
+++ b/kslog/kslog_cli/kslog.h
@@ -0,0 +1,23 @@
+/*
+ * kslog.h
+ *
+ * kslog defines, etc.
+ *
+ * mike@gravitino.net
+ */
+
+// keystroke circular buffer size
+#define CBUF_SIZE 1024
+
+// ioctl cmd structure
+typedef struct kslog_op
+{
+ // id if related to operation (PID/UID)
+ int val;
+} kslog_op;
+
+#define KSLOG_SETPID _IOW('O', 0, struct kslog_op)
+#define KSLOG_SETUID _IOW('O', 1, struct kslog_op)
+#define KSLOG_START _IOW('O', 2, struct kslog_op)
+#define KSLOG_STOP _IOW('O', 3, struct kslog_op)
+#define KSLOG_STATUS _IOR('O', 4, struct kslog_op)