Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Functions | Variables
prerror.h File Reference
#include "prtypes.h"
#include "prerr.h"

Go to the source code of this file.

Classes

struct  PRErrorMessage
struct  PRErrorTable

Defines

#define PR_NSPR_ERROR_BASE   -6000
#define PR_LANGUAGE_I_DEFAULT   0 /* i-default, the default language */
#define PR_LANGUAGE_EN   1 /* English, explicitly negotiated */

Typedefs

typedef PRUint32 PRLanguageCode
typedef const char * PRErrorCallbackLookupFn (PRErrorCode code, PRLanguageCode language, const struct PRErrorTable *table, struct PRErrorCallbackPrivate *cb_private, struct PRErrorCallbackTablePrivate *table_private)
typedef struct
PRErrorCallbackTablePrivate * 
PRErrorCallbackNewTableFn (const struct PRErrorTable *table, struct PRErrorCallbackPrivate *cb_private)

Functions

 NSPR_API (void) PR_SetError(PRErrorCode errorCode
 Prototypes for machine dependent function implementations.
 NSPR_API (PRErrorCode) PR_GetError(void)
 NSPR_API (PRInt32) PR_GetOSError(void)
 NSPR_API (const char *) PR_ErrorToString(PRErrorCode code
 NSPR_API (const char *const *) PR_ErrorLanguages(void)

Variables

PR_BEGIN_EXTERN_C typedef PRInt32 PRErrorCode
PRInt32 oserr
const char * text
PRLanguageCode language
PRErrorCallbackLookupFnlookup
PRErrorCallbackLookupFn
PRErrorCallbackNewTableFn
newtable
PRErrorCallbackLookupFn
PRErrorCallbackNewTableFn
struct PRErrorCallbackPrivate * 
cb_private

Class Documentation

struct PRErrorMessage

Definition at line 186 of file prerror.h.

Class Members
const char * en_text
const char * name
struct PRErrorTable

Definition at line 196 of file prerror.h.

Collaboration diagram for PRErrorTable:
Class Members
PRErrorCode base
struct PRErrorMessage * msgs
int n_msgs
const char * name

Define Documentation

#define PR_LANGUAGE_EN   1 /* English, explicitly negotiated */

Definition at line 179 of file prerror.h.

#define PR_LANGUAGE_I_DEFAULT   0 /* i-default, the default language */

Definition at line 178 of file prerror.h.

Definition at line 47 of file prerror.h.


Typedef Documentation

typedef const char* PRErrorCallbackLookupFn(PRErrorCode code, PRLanguageCode language, const struct PRErrorTable *table, struct PRErrorCallbackPrivate *cb_private, struct PRErrorCallbackTablePrivate *table_private)

Definition at line 229 of file prerror.h.

typedef struct PRErrorCallbackTablePrivate* PRErrorCallbackNewTableFn(const struct PRErrorTable *table, struct PRErrorCallbackPrivate *cb_private)

Definition at line 245 of file prerror.h.

Definition at line 177 of file prerror.h.


Function Documentation

NSPR_API ( void  )

Prototypes for machine dependent function implementations.

(Too bad NSPR's MD system blows so much that we have to reiterate every stinking thing we implement here in our MD header file.)

NSPR_API ( const char *  )
NSPR_API ( const char *const )

Variable Documentation

Definition at line 322 of file prerror.h.

Definition at line 263 of file prerror.h.

static NAMED * lookup

Definition at line 320 of file prerror.h.

Definition at line 320 of file prerror.h.

Definition at line 57 of file prerror.h.

Definition at line 45 of file prerror.h.

const char* text

Definition at line 69 of file prerror.h.