]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - keyd.h
Add support for key retrieval by SKS hash
[onak.git] / keyd.h
diff --git a/keyd.h b/keyd.h
index 3bc252a3920835cad3fdb56f9479a82e07567917..4313a4f005dd4a96c33e887b425ef5d15d6981b9 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 {
@@ -21,7 +23,10 @@ enum keyd_ops {
        KEYD_CMD_GETFULLKEYID,
        KEYD_CMD_KEYITER,
        KEYD_CMD_CLOSE,
-       KEYD_CMD_QUIT
+       KEYD_CMD_QUIT,
+       KEYD_CMD_STATS,
+       KEYD_CMD_GETSKSHASH,
+       KEYD_CMD_LAST                   /* Placeholder */
 };
 
 enum keyd_reply {
@@ -29,6 +34,12 @@ enum keyd_reply {
        KEYD_REPLY_UNKNOWN_CMD = 1
 };
 
-static int keyd_version = 2;
+static uint32_t keyd_version = 3;
+
+struct keyd_stats {
+       time_t started;
+       uint32_t connects;
+       uint32_t command_stats[KEYD_CMD_LAST];
+};
 
 #endif /* __KEYD_H__ */