Hubbub  $Id$
errors.h
Go to the documentation of this file.
1 /*
2  * This file is part of Hubbub.
3  * Licensed under the MIT License,
4  * http://www.opensource.org/licenses/mit-license.php
5  * Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org>
6  */
7 
8 #ifndef hubbub_errors_h_
9 #define hubbub_errors_h_
10 
11 #ifdef __cplusplus
12 extern "C"
13 {
14 #endif
15 
16 #include <stddef.h>
17 
18 typedef enum hubbub_error {
19  HUBBUB_OK = 0,
30 
32 } hubbub_error;
33 
34 /* Convert a hubbub error value to a string */
35 const char *hubbub_error_to_string(hubbub_error error);
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif
42 
HUBBUB_FILENOTFOUND
@ HUBBUB_FILENOTFOUND
Definition: errors.h:27
HUBBUB_BADPARM
@ HUBBUB_BADPARM
Definition: errors.h:25
HUBBUB_REPROCESS
@ HUBBUB_REPROCESS
Definition: errors.h:20
hubbub_error_to_string
const char * hubbub_error_to_string(hubbub_error error)
Convert a hubbub error code to a string.
Definition: errors.c:18
HUBBUB_PAUSED
@ HUBBUB_PAUSED
tokenisation is paused
Definition: errors.h:22
HUBBUB_INVALID
@ HUBBUB_INVALID
Definition: errors.h:26
HUBBUB_NEEDDATA
@ HUBBUB_NEEDDATA
Definition: errors.h:28
HUBBUB_NOMEM
@ HUBBUB_NOMEM
Definition: errors.h:24
hubbub_error
hubbub_error
Definition: errors.h:18
HUBBUB_ENCODINGCHANGE
@ HUBBUB_ENCODINGCHANGE
Definition: errors.h:21
HUBBUB_BADENCODING
@ HUBBUB_BADENCODING
Definition: errors.h:29
HUBBUB_OK
@ HUBBUB_OK
No error.
Definition: errors.h:19
HUBBUB_UNKNOWN
@ HUBBUB_UNKNOWN
Definition: errors.h:31