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
|
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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;
|
|
|
|
|
|
|
|
/* 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;
|
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;
|
|
|
|
|
2009-09-23 12:28:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/*-- g13.c --*/
|
|
|
|
void g13_init_default_ctrl (struct server_control_s *ctrl);
|
|
|
|
|
|
|
|
#endif /*G13_H*/
|