Debian Codegraph @

include/libaccess/nserror.h

raw
1 /** BEGIN COPYRIGHT BLOCK
2 * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
3 * Copyright (C) 2005 Red Hat, Inc.
4 * All rights reserved.
5 *
6 * License: GPL (version 3 or any later version).
7 * See LICENSE for details.
8 * END COPYRIGHT BLOCK **/
9
10 #ifdef HAVE_CONFIG_H
11 #include <config.h>
12 #endif
13
14 #ifndef __nserror_h
15 #define __nserror_h
16
17 #ifndef NOINTNSACL
18 #define INTNSACL
19 #endif /* !NOINTNSACL */
20
21 /*
22 * Description (nserror.h)
23 *
24 * This file describes the interface to an error handling mechanism
25 * that is intended for general use. This mechanism uses a data
26 * structure known as an "error frame" to capture information about
27 * an error. Multiple error frames are used in nested function calls
28 * to capture the interpretation of an error at the different levels
29 * of a nested call.
30 */
31
32 #include <stdarg.h>
33 #include <prtypes.h>
34 #include "public/nsacl/nserrdef.h"
35
36 #ifdef INTNSACL
37
38 NSPR_BEGIN_EXTERN_C
39
40 /* Functions in nseframe.c */
41 extern void nserrDispose(NSErr_t *errp);
42 extern NSEFrame_t *nserrFAlloc(NSErr_t *errp);
43 extern void nserrFFree(NSErr_t *errp, NSEFrame_t *efp);
44 extern NSEFrame_t *nserrGenerate(NSErr_t *errp, long retcode, long errorid, const char *program, int errc, ...);
45
46 /* Functions in nserrmsg.c */
47 extern char *nserrMessage(NSEFrame_t *efp, int flags);
48 extern char *nserrRetrieve(NSEFrame_t *efp, int flags);
49
50 NSPR_END_EXTERN_C
51
52 #endif /* INTNSACL */
53
54 #endif /* __nserror_h */