~ubuntu-branches/ubuntu/natty/libgpg-error/natty

« back to all changes in this revision

Viewing changes to src/gpg-error.h.in

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Meurer
  • Date: 2010-12-16 12:55:05 UTC
  • mfrom: (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20101216125505-zmdtr4zdfnwu5pox
Tags: 1.10-0.1
* Non-maintainer upload.
* New upstream release 1.10. (Closes: #554234)
* Upload to experimental due to squeeze deep freeze
* Add debian/watch file.
* debian/control:
  + Move source package to section libs.
  + Add misc Depends for debhelper.
  + Update short description for libgpg-error-dev
  + Bump standards-version to 3.9.1, no changes required
  + Add Homepage header
  + Set Priority=standard for source package
* debian/rules:
  + Remove unused dpatch patch system implementation and patches
  + Remove unneeded 'chmod +x configure' from configure-stamp target
  + Move libgpg-error0 library to /lib. (Closes: #604945)
  + Fix targets to always depend on target-stamp, add install-stamp
  + Remove '-V 'libgpg-error0 (>= 1.6-1)'' from dh_makeshlibs
* move debian/doc to debian/libgpg-error0.doc:
  + ship NEWS and README in library package, not in dev package
* debian/libgpg-error-dev.install:
  + don't install unavailable libgpg-error.a
* debian/gpg-error(-config).1:
  + Fix manpages, thanks to lintian
* debian/copyright:
  + refer to versioned LGPL 2.1, thanks to lintian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* gpg-error.h - Public interface to libgpg-error.
2
 
   Copyright (C) 2003, 2004 g10 Code GmbH
 
2
   Copyright (C) 2003, 2004, 2010 g10 Code GmbH
3
3
 
4
4
   This file is part of libgpg-error.
5
5
 
14
14
   Lesser General Public License for more details.
15
15
 
16
16
   You should have received a copy of the GNU Lesser General Public
17
 
   License along with libgpg-error; if not, write to the Free
18
 
   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19
 
   02111-1307, USA.  */
 
17
   License along with this program; if not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
 
20
20
 
21
21
#ifndef GPG_ERROR_H
22
22
#define GPG_ERROR_H     1
53
53
   another, it preserver the information about the source and nature
54
54
   of the error.
55
55
 
56
 
   A component of the GnuPG project can define the following macro to
 
56
   A component of the GnuPG project can define the following macros to
57
57
   tune the behaviour of the library:
58
58
 
59
59
   GPG_ERR_SOURCE_DEFAULT: Define to an error source of type
60
60
   gpg_err_source_t to make that source the default for gpg_error().
61
 
   Otherwise GPG_ERR_SOURCE_UNKNOWN is used as default.  */
 
61
   Otherwise GPG_ERR_SOURCE_UNKNOWN is used as default.
 
62
 
 
63
   GPG_ERR_ENABLE_GETTEXT_MACROS: Define to provide macros to map the
 
64
   internal gettext API to standard names.  This has only an effect on
 
65
   Windows platforms.  */
62
66
 
63
67
 
64
68
/* The error source type gpg_err_source_t.
74
78
@include err-sources.h.in
75
79
 
76
80
    /* This is one more than the largest allowed entry.  */
77
 
    GPG_ERR_SOURCE_DIM = 256
 
81
    GPG_ERR_SOURCE_DIM = 128
78
82
  } gpg_err_source_t;
79
83
 
80
84
 
109
113
 
110
114
/* Bits 17 to 24 are reserved.  */
111
115
 
112
 
/* We use the upper 8 bits of gpg_error_t for error sources.  */
 
116
/* We use the upper 7 bits of gpg_error_t for error sources.  */
113
117
#define GPG_ERR_SOURCE_MASK     (GPG_ERR_SOURCE_DIM - 1)
114
118
#define GPG_ERR_SOURCE_SHIFT    24
115
119
 
 
120
/* The highest bit is reserved.  It shouldn't be used to prevent
 
121
   potential negative numbers when transmitting error values as
 
122
   text.  */
 
123
 
116
124
 
117
125
/* GCC feature test.  */
118
126
#undef _GPG_ERR_HAVE_CONSTRUCTOR
144
152
#define GPG_ERR_INITIALIZED     1
145
153
#endif
146
154
 
 
155
/* See the source on how to use the deinit function; it is usually not
 
156
   required.  */
 
157
void gpg_err_deinit (int mode);
 
158
 
147
159
 
148
160
/* Constructor and accessor functions.  */
149
161
 
227
239
gpg_err_code_t gpg_err_code_from_syserror (void);
228
240
 
229
241
 
 
242
/* Set the ERRNO variable.  This function is the preferred way to set
 
243
   ERRNO due to peculiarities on WindowsCE.  */
 
244
void gpg_err_set_errno (int err);
230
245
 
 
246
@include extra-h.in
231
247
 
232
248
/* Self-documenting convenience functions.  */
233
249