Updated the german translation
[gnupg.git] / tools / gpgconf.h
blobbe9172aa66317a2d4bac16f4a2110fcf79f2b8fb
1 /* gpgconf.h - Global definitions for gpgconf
2 * Copyright (C) 2003 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 GPGCONF_H
21 #define GPGCONF_H
23 #include "../common/util.h"
25 /* We keep all global options in the structure OPT. */
26 struct
28 int verbose; /* Verbosity level. */
29 int quiet; /* Be extra quiet. */
30 int dry_run; /* Don't change any persistent data. */
31 int runtime; /* Make changes active at runtime. */
32 char *outfile; /* Name of output file. */
34 int component; /* The active component. */
35 } opt;
39 /*-- gpgconf-comp.c --*/
40 /* Percent-Escape special characters. The string is valid until the
41 next invocation of the function. */
42 char *gc_percent_escape (const char *src);
45 void gc_error (int status, int errnum, const char *fmt, ...);
47 /* Reload given component. */
48 void gc_component_reload (int component);
50 /* List all components that are available. */
51 void gc_component_list_components (FILE *out);
53 /* List all programs along with their status. */
54 void gc_check_programs (FILE *out);
56 /* Find the component with the name NAME. Returns -1 if not
57 found. */
58 int gc_component_find (const char *name);
60 /* Retrieve the currently active options and their defaults from all
61 involved backends for this component. */
62 void gc_component_retrieve_options (int component);
64 /* List all options of the component COMPONENT. */
65 void gc_component_list_options (int component, FILE *out);
67 /* Read the modifications from IN and apply them. */
68 void gc_component_change_options (int component, FILE *in, FILE *out);
70 /* Check the options of a single component. Returns 0 if everything
71 is OK. */
72 int gc_component_check_options (int component, FILE *out,
73 const char *conf_file);
75 /* Process global configuration file. */
76 int gc_process_gpgconf_conf (const char *fname, int update, int defaults,
77 FILE *listfp);
80 #endif /*GPGCONF_H*/