Add -1 to Debian package version
[onak.git] / keyd.h
diff --git a/keyd.h b/keyd.h
index 7497cb49809d88023c173ff8e028a795a0acf0fa..ce19d8dd13f0c78fda9911fd8e9456ea627da9a6 100644 (file)
--- a/keyd.h
+++ b/keyd.h
@@ -9,6 +9,8 @@
 #ifndef __KEYD_H__
 #define __KEYD_H__
 
+#include <stdint.h>
+
 #define KEYD_SOCKET "keyd.sock"
 
 enum keyd_ops {
@@ -19,8 +21,11 @@ enum keyd_ops {
        KEYD_CMD_DELETE,
        KEYD_CMD_GETTEXT,
        KEYD_CMD_GETFULLKEYID,
+       KEYD_CMD_KEYITER,
        KEYD_CMD_CLOSE,
-       KEYD_CMD_QUIT
+       KEYD_CMD_QUIT,
+       KEYD_CMD_STATS,
+       KEYD_CMD_LAST                   /* Placeholder */
 };
 
 enum keyd_reply {
@@ -28,6 +33,12 @@ enum keyd_reply {
        KEYD_REPLY_UNKNOWN_CMD = 1
 };
 
-static int keyd_version = 1;
+static uint32_t keyd_version = 2;
+
+struct keyd_stats {
+       time_t started;
+       uint32_t connects;
+       uint32_t command_stats[KEYD_CMD_LAST];
+};
 
 #endif /* __KEYD_H__ */