Bump version for development.
[pwmd.git] / src / status.h
blob401a928a2a990a6295f2e8426680dd04e8e7bbde
1 /*
2 Copyright (C) 2006-2024 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 STATUS_H
19 #define STATUS_H
21 #include <gpg-error.h>
22 #include <assuan.h>
24 typedef enum
26 STATUS_CACHE,
27 STATUS_CLIENTS,
28 STATUS_LOCKED,
29 STATUS_ENCRYPT,
30 STATUS_DECRYPT,
31 STATUS_XFER,
32 STATUS_GENKEY,
33 STATUS_NEWFILE,
34 STATUS_GPGME,
35 STATUS_KEEPALIVE,
36 STATUS_STATE,
37 STATUS_EXPIRE,
38 #ifdef WITH_GNUTLS
39 STATUS_REHANDSHAKE,
40 #endif
41 STATUS_BULK,
42 STATUS_MODIFIED,
43 } status_msg_t;
45 struct status_msg_s
47 status_msg_t s;
48 char *line;
49 struct status_msg_s *next;
52 gpg_error_t send_status (assuan_context_t ctx, status_msg_t which,
53 const char *fmt, ...);
54 void send_status_all (status_msg_t s, const char *fmt, ...);
55 void send_status_all_not_self (status_msg_t s, const char *fmt, ...);
56 void send_status_modified (assuan_context_t);
58 #endif