Update copyright.
[pwmd.git] / src / status.h
bloba43dfdb4cdd149825745d656278e5a98254d0f00
1 /*
2 Copyright (C) 2006-2018 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 as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
11 Pwmd is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Pwmd. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef STATUS_H
20 #define STATUS_H
22 #include <gpg-error.h>
23 #include <assuan.h>
25 typedef enum
27 STATUS_CACHE,
28 STATUS_CLIENTS,
29 STATUS_LOCKED,
30 STATUS_ENCRYPT,
31 STATUS_DECRYPT,
32 STATUS_XFER,
33 STATUS_GENKEY,
34 STATUS_NEWFILE,
35 STATUS_GPGME,
36 STATUS_KEEPALIVE,
37 STATUS_STATE,
38 STATUS_EXPIRE,
39 #ifdef WITH_GNUTLS
40 STATUS_REHANDSHAKE,
41 #endif
42 } status_msg_t;
44 struct status_msg_s
46 status_msg_t s;
47 char *line;
48 struct status_msg_s *next;
51 gpg_error_t send_status (assuan_context_t ctx, status_msg_t which,
52 const char *fmt, ...);
53 void send_status_all (status_msg_t s, const char *fmt, ...);
54 void send_status_all_not_self (status_msg_t s, const char *fmt, ...);
56 #endif