X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/f42ab5050f79833030453b21d69f4f3be9fcd0d0..7ca3c239d76ae7112c166f29c35e11620ba93d9f:/keyd.h?ds=sidebyside diff --git a/keyd.h b/keyd.h index 3bc252a..4313a4f 100644 --- a/keyd.h +++ b/keyd.h @@ -9,6 +9,8 @@ #ifndef __KEYD_H__ #define __KEYD_H__ +#include + #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__ */