1 /* asshelp.h - Helper functions for Assuan
2 * Copyright (C) 2004, 2007 Free Software Foundation, Inc.
4 * This file is part of GnuPG.
6 * GnuPG 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 3 of the License, or
9 * (at your option) any later version.
11 * GnuPG 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 this program; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef GNUPG_COMMON_ASSHELP_H
21 #define GNUPG_COMMON_ASSHELP_H
24 #include <gpg-error.h>
27 send_pinentry_environment (assuan_context_t ctx
,
28 gpg_err_source_t errsource
,
29 const char *opt_display
,
30 const char *opt_ttyname
,
31 const char *opt_ttytype
,
32 const char *opt_lc_ctype
,
33 const char *opt_lc_messages
,
34 const char *opt_xauthority
,
35 const char *opt_pinentry_user_data
);
37 /* This fucntion is used by the call-agent.c modules to fire up a new
38 agent. What a parameter list ;-). */
40 start_new_gpg_agent (assuan_context_t
*r_ctx
,
41 gpg_err_source_t errsource
,
43 const char *agent_program
,
44 const char *opt_display
,
45 const char *opt_ttyname
,
46 const char *opt_ttytype
,
47 const char *opt_lc_ctype
,
48 const char *opt_lc_messages
,
49 const char *opt_xauthority
,
50 const char *opt_pinentry_user_data
,
51 int verbose
, int debug
,
52 gpg_error_t (*status_cb
)(ctrl_t
, int, ...),
53 ctrl_t status_cb_arg
);
56 #endif /*GNUPG_COMMON_ASSHELP_H*/