Fix a few 'gcc -fanalyzer' warnings.
[pwmd.git] / src / commands.h
blobb3b28d02930cb65e46e6b8bbe08f58f83f4c8ae6
1 /*
2 Copyright (C) 2006-2023 Ben Kibbey <bjk@luxsci.net>
4 This file is part of pwmd.
6 Pwmd is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License version 2 as
8 published by the Free Software Foundation.
10 Pwmd is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with Pwmd. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef COMMANDS_H
19 #define COMMANDS_H
21 /* Flags needed to be retained for a client across commands. */
22 #define FLAG_NEW 0x0001
23 #define FLAG_HAS_LOCK 0x0002
24 #define FLAG_LOCK_CMD 0x0004
25 #define FLAG_NO_PINENTRY 0x0008
26 #define FLAG_OPEN 0x0010
27 #define FLAG_KEEP_LOCK 0x0020
28 #define FLAG_ACL_IGNORE 0x0040 // ATTR LIST
29 #define FLAG_ACL_ERROR 0x0080 // ...
30 #define FLAG_NO_INHERIT_ACL 0x0100
32 gpg_error_t register_commands (assuan_context_t ctx);
33 int valid_filename (const char *filename);
34 void reset_client (struct client_s *client);
35 void init_commands ();
36 void deinit_commands ();
38 #endif