X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=keyd.h;h=915b1b64385978c6b1268727eb4fec340f46bd1a;hb=3839a6a5eb45a07065cef61b2bfe2c7f317c7b44;hp=9dd72277f6694f2e4e001370c8ebd33b48b39db3;hpb=59e5def499b3e9ae3587ebae2bef8794a1df34ea;p=onak.git diff --git a/keyd.h b/keyd.h index 9dd7227..915b1b6 100644 --- a/keyd.h +++ b/keyd.h @@ -1,9 +1,20 @@ /* * keyd.h - Public API for keyd. * - * Jonathan McDowell + * Copyright 2004,2011 Jonathan McDowell * - * Copyright 2004 Project Purple + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 51 + * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef __KEYD_H__ @@ -23,7 +34,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 { @@ -31,6 +45,12 @@ enum keyd_reply { KEYD_REPLY_UNKNOWN_CMD = 1 }; -static uint32_t 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__ */