2009-09-23 12:28:41 +02:00
|
|
|
/* g13.h - Global definitions for G13.
|
|
|
|
* Copyright (C) 2009 Free Software Foundation, Inc.
|
|
|
|
*
|
|
|
|
* This file is part of GnuPG.
|
|
|
|
*
|
|
|
|
* GnuPG is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* GnuPG is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2016-11-05 12:02:19 +01:00
|
|
|
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
2009-09-23 12:28:41 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef G13_H
|
|
|
|
#define G13_H
|
|
|
|
|
2015-09-14 18:49:32 +02:00
|
|
|
#include "g13-common.h"
|
2009-09-23 12:28:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Forward declaration for an object defined in server.c. */
|
|
|
|
struct server_local_s;
|
2015-10-21 08:38:10 +02:00
|
|
|
/* Forward declaration for an object defined in call-syshelp.c. */
|
|
|
|
struct call_syshelp_s;
|
|
|
|
|
2009-09-23 12:28:41 +02:00
|
|
|
|
|
|
|
/* Session control object. This object is passed down to most
|
|
|
|
functions. The default values for it are set by
|
|
|
|
g13_init_default_ctrl(). */
|
|
|
|
struct server_control_s
|
|
|
|
{
|
|
|
|
int no_server; /* We are not running under server control */
|
|
|
|
int status_fd; /* Only for non-server mode */
|
|
|
|
struct server_local_s *server_local;
|
2015-10-21 08:38:10 +02:00
|
|
|
struct call_syshelp_s *syshelp_local;
|
2011-02-04 12:57:53 +01:00
|
|
|
|
2009-09-23 12:28:41 +02:00
|
|
|
int agent_seen; /* Flag indicating that the gpg-agent has been
|
|
|
|
accessed. */
|
2011-02-04 12:57:53 +01:00
|
|
|
|
2009-09-23 12:28:41 +02:00
|
|
|
int with_colons; /* Use column delimited output format */
|
2009-09-30 17:28:38 +02:00
|
|
|
|
|
|
|
/* Type of the current container. See the CONTTYPE_ constants. */
|
|
|
|
int conttype;
|
|
|
|
|
2016-02-13 17:01:45 +01:00
|
|
|
strlist_t recipients; /* List of recipients. */
|
|
|
|
|
2009-09-23 12:28:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/*-- g13.c --*/
|
2015-10-21 08:38:10 +02:00
|
|
|
void g13_init_default_ctrl (ctrl_t ctrl);
|
|
|
|
void g13_deinit_default_ctrl (ctrl_t ctrl);
|
2016-02-13 17:01:45 +01:00
|
|
|
void g13_request_shutdown (void);
|
2009-09-23 12:28:41 +02:00
|
|
|
|
|
|
|
#endif /*G13_H*/
|