1 ;;;; libgpg-error-package.lisp
3 ;;; Copyright (C) 2006 g10 Code GmbH
5 ;;; This file is part of libgpg-error.
7 ;;; libgpg-error is free software; you can redistribute it and/or
8 ;;; modify it under the terms of the GNU Lesser General Public License
9 ;;; as published by the Free Software Foundation; either version 2.1 of
10 ;;; the License, or (at your option) any later version.
12 ;;; libgpg-error is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 ;;; Lesser General Public License for more details.
17 ;;; You should have received a copy of the GNU Lesser General Public
18 ;;; License along with libgpg-error; if not, write to the Free
19 ;;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24 ;;; Error sources and codes are represented as keywords like
25 ;;; :gpg-err-source-gpg and :gpg-err-unknown-packet.
27 ;;; Errors are represented as lists '(SOURCE CODE). Other
28 ;;; representations are also accepted in some places.
30 ;;; The following functions are defined which are not defined in the C API:
31 ;;; gpg-err-source-as-key, gpg-err-source-as-value
32 ;;; gpg-err-code-as-key, gpg-err-code-as-value
33 ;;; gpg-err-canonicalize, gpg-err-as-value
34 ;;; Conversion between keywords and values for error sources and codes.
36 ;;; The following functions from the C API are omitted:
39 ;;; The following features work slightly differently:
40 ;;; *gpg-err-source-default* is a dynamic variable that can be set to
41 ;;; change the default for gpg-error.
43 (defpackage #:gpg-error
44 (:use
#:common-lisp
#:cffi
)
46 (:export
#:gpg-err-code-as-key
47 #:gpg-err-code-as-value
48 #:gpg-err-source-as-key
49 #:gpg-err-source-as-value
50 #:gpg-err-canonicalize
53 #:*gpg-err-source-default
*
59 #:gpg-err-code-from-errno
60 #:gpg-err-code-to-errno
61 #:gpg-err-code-from-syserror
62 #:gpg-err-make-from-errno
63 #:gpg-error-from-errno
64 #:gpg-error-from-syserror