diff options
author | Werner Koch <wk@gnupg.org> | 2007-08-02 20:12:43 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2007-08-02 20:12:43 +0200 |
commit | ebd36b634450ce9fdf0104052cca2b035ad3a22d (patch) | |
tree | 1708507fee17d3520460bd94636800d4b828c8ed /common | |
parent | Applied exact length hack. (diff) | |
download | gnupg2-ebd36b634450ce9fdf0104052cca2b035ad3a22d.tar.xz gnupg2-ebd36b634450ce9fdf0104052cca2b035ad3a22d.zip |
Factored common gpgconf constants out
Fixed W32 compare_filenames
Diffstat (limited to 'common')
-rw-r--r-- | common/ChangeLog | 4 | ||||
-rw-r--r-- | common/Makefile.am | 1 | ||||
-rw-r--r-- | common/gc-opt-flags.h | 40 |
3 files changed, 45 insertions, 0 deletions
diff --git a/common/ChangeLog b/common/ChangeLog index 3542d6595..d3f55066d 100644 --- a/common/ChangeLog +++ b/common/ChangeLog @@ -1,3 +1,7 @@ +2007-08-02 Werner Koch <wk@g10code.com> + + * gc-opt-flags.h: New. + 2007-08-01 Werner Koch <wk@g10code.com> * estream-printf.c (read_dummy_value): Removed as it is useless now. diff --git a/common/Makefile.am b/common/Makefile.am index 08ead7996..0ce11f188 100644 --- a/common/Makefile.am +++ b/common/Makefile.am @@ -33,6 +33,7 @@ common_sources = \ util.h i18n.c i18n.h \ errors.h \ openpgpdefs.h \ + gc-opt-flags.h \ keyserver.h \ sexp-parse.h \ init.c init.h \ diff --git a/common/gc-opt-flags.h b/common/gc-opt-flags.h new file mode 100644 index 000000000..261fe8796 --- /dev/null +++ b/common/gc-opt-flags.h @@ -0,0 +1,40 @@ +/* gc-opt-flags.h - gpgconf constants used by the backends. + * Copyright (C) 2004, 2007 Free Software Foundation, Inc. + * + * This file is free software; as a special exception the author gives + * unlimited permission to copy and/or distribute it, with or without + * modifications, as long as this notice is preserved. + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY, to the extent permitted by law; without even + * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. + */ + +#ifndef GNUPG_GC_OPT_FLAGS_H +#define GNUPG_GC_OPT_FLAGS_H + +/* Public option flags. YOU MUST NOT CHANGE THE NUMBERS OF THE + EXISTING FLAGS, AS THEY ARE PART OF THE EXTERNAL INTERFACE. See + gnupg/tools/gpgconf-comp.c for details. */ + +#define GC_OPT_FLAG_NONE 0UL + +/* The RUNTIME flag for an option indicates that the option can be + changed at runtime. */ +#define GC_OPT_FLAG_RUNTIME (1UL << 3) + +/* The DEFAULT flag for an option indicates that the option has a + default value. */ +#define GC_OPT_FLAG_DEFAULT (1UL << 4) + +/* The DEF_DESC flag for an option indicates that the option has a + default, which is described by the value of the default field. */ +#define GC_OPT_FLAG_DEF_DESC (1UL << 5) + +/* The NO_ARG_DESC flag for an option indicates that the argument has + a default, which is described by the value of the ARGDEF field. */ +#define GC_OPT_FLAG_NO_ARG_DESC (1UL << 6) + + +#endif /*GNUPG_GC_OPT_FLAGS_H*/ |