3 * @brief Public API for keyd.
5 * Copyright 2004,2011 Jonathan McDowell <noodles@earth.li>
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the Free
9 * Software Foundation; version 2 of the License.
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU General Public License along with
17 * this program. If not, see <https://www.gnu.org/licenses/>.
26 * @brief The name of the keyd Unix domain socket
28 #define KEYD_SOCKET "keyd.sock"
31 * @brief keyd commands
40 KEYD_CMD_GETFULLKEYID,
49 KEYD_CMD_LAST /* Placeholder */
53 * @brief Reply codes for keyd commands
57 KEYD_REPLY_UNKNOWN_CMD = 1
61 * @brief Version of the keyd protocol currently supported
63 static const uint32_t keyd_version = 5;
66 * @brief Response structure for the @a KEYD_CMD_STATS response
69 /** Unix time of when the keyd daemon was started */
71 /** Number of connects we've seen to keyd */
73 /** Count of the number of times each command has been used */
74 uint32_t command_stats[KEYD_CMD_LAST];
77 #endif /* __KEYD_H__ */