diff options
Diffstat (limited to 'linbuild/include/gpg-error.h')
-rw-r--r-- | linbuild/include/gpg-error.h | 42 |
1 files changed, 33 insertions, 9 deletions
diff --git a/linbuild/include/gpg-error.h b/linbuild/include/gpg-error.h index c52bd07..bc884bf 100644 --- a/linbuild/include/gpg-error.h +++ b/linbuild/include/gpg-error.h @@ -1,7 +1,7 @@ -/* Output of mkheader.awk. DO NOT EDIT. */ +/* Output of mkheader.awk. DO NOT EDIT. -*- buffer-read-only: t -*- */ /* gpg-error.h - Public interface to libgpg-error. - Copyright (C) 2003, 2004 g10 Code GmbH + Copyright (C) 2003, 2004, 2010 g10 Code GmbH This file is part of libgpg-error. @@ -16,9 +16,9 @@ Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public - License along with libgpg-error; if not, write to the Free - Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + License along with this program; if not, see <http://www.gnu.org/licenses/>. + */ + #ifndef GPG_ERROR_H #define GPG_ERROR_H 1 @@ -55,12 +55,16 @@ extern "C" { another, it preserver the information about the source and nature of the error. - A component of the GnuPG project can define the following macro to + A component of the GnuPG project can define the following macros to tune the behaviour of the library: GPG_ERR_SOURCE_DEFAULT: Define to an error source of type gpg_err_source_t to make that source the default for gpg_error(). - Otherwise GPG_ERR_SOURCE_UNKNOWN is used as default. */ + Otherwise GPG_ERR_SOURCE_UNKNOWN is used as default. + + GPG_ERR_ENABLE_GETTEXT_MACROS: Define to provide macros to map the + internal gettext API to standard names. This has only an effect on + Windows platforms. */ /* The error source type gpg_err_source_t. @@ -87,6 +91,7 @@ typedef enum GPG_ERR_SOURCE_GSTI = 11, GPG_ERR_SOURCE_GPA = 12, GPG_ERR_SOURCE_KLEO = 13, + GPG_ERR_SOURCE_G13 = 14, GPG_ERR_SOURCE_ANY = 31, GPG_ERR_SOURCE_USER_1 = 32, GPG_ERR_SOURCE_USER_2 = 33, @@ -94,7 +99,7 @@ typedef enum GPG_ERR_SOURCE_USER_4 = 35, /* This is one more than the largest allowed entry. */ - GPG_ERR_SOURCE_DIM = 256 + GPG_ERR_SOURCE_DIM = 128 } gpg_err_source_t; @@ -280,6 +285,14 @@ typedef enum GPG_ERR_LOCKED = 173, GPG_ERR_UNKNOWN_OPTION = 174, GPG_ERR_UNKNOWN_COMMAND = 175, + GPG_ERR_NOT_OPERATIONAL = 176, + GPG_ERR_NO_PASSPHRASE = 177, + GPG_ERR_NO_PIN = 178, + GPG_ERR_NOT_ENABLED = 179, + GPG_ERR_NO_ENGINE = 180, + GPG_ERR_MISSING_KEY = 181, + GPG_ERR_TOO_MANY = 182, + GPG_ERR_LIMIT_REACHED = 183, GPG_ERR_UNFINISHED = 199, GPG_ERR_BUFFER_TOO_SHORT = 200, GPG_ERR_SEXP_INV_LEN_SPEC = 201, @@ -502,10 +515,14 @@ typedef unsigned int gpg_error_t; /* Bits 17 to 24 are reserved. */ -/* We use the upper 8 bits of gpg_error_t for error sources. */ +/* We use the upper 7 bits of gpg_error_t for error sources. */ #define GPG_ERR_SOURCE_MASK (GPG_ERR_SOURCE_DIM - 1) #define GPG_ERR_SOURCE_SHIFT 24 +/* The highest bit is reserved. It shouldn't be used to prevent + potential negative numbers when transmitting error values as + text. */ + /* GCC feature test. */ #undef _GPG_ERR_HAVE_CONSTRUCTOR @@ -537,6 +554,10 @@ gpg_error_t gpg_err_init (void) _GPG_ERR_CONSTRUCTOR; #define GPG_ERR_INITIALIZED 1 #endif +/* See the source on how to use the deinit function; it is usually not + required. */ +void gpg_err_deinit (int mode); + /* Constructor and accessor functions. */ @@ -620,6 +641,9 @@ int gpg_err_code_to_errno (gpg_err_code_t code); gpg_err_code_t gpg_err_code_from_syserror (void); +/* Set the ERRNO variable. This function is the preferred way to set + ERRNO due to peculiarities on WindowsCE. */ +void gpg_err_set_errno (int err); /* Self-documenting convenience functions. */ |