1 /* vim:tw=78:ts=8:sw=4:set ft=c: */
3 Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012
4 Ben Kibbey <bjk@luxsci.net>
6 This file is part of pwmd.
8 Pwmd is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 2 of the License, or
11 (at your option) any later version.
13 Pwmd is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with Pwmd. If not, see <http://www.gnu.org/licenses/>.
24 #include <sys/types.h>
27 #include <glib/gi18n.h>
43 struct client_thread_s
{
46 pthread_mutex_t status_mutex
;
47 struct status_msg_s
*msg_queue
;
48 int status_msg_pipe
[2];
58 gpointer doc
; /* xmlDocPtr */
62 struct client_thread_s
*thd
;
63 struct crypto_s
*crypto
;
67 gchar
*last_error
; /* ELOOP element path. */
68 guchar
*crc
; /* Of the data file. */
71 pthread_key_t thread_name_key
;
72 pthread_mutex_t cn_mutex
;
73 GSList
*cn_thread_list
;
76 int assuan_log_cb(assuan_context_t ctx
, void *data
, unsigned cat
,
78 void log_write(const gchar
*fmt
, ...);
79 gpg_error_t
send_error(assuan_context_t ctx
, gpg_error_t e
);