Hubbub
$Id$
include
hubbub
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,
20
HUBBUB_REPROCESS
= 1,
21
HUBBUB_ENCODINGCHANGE
= 2,
22
HUBBUB_PAUSED
= 3,
24
HUBBUB_NOMEM
= 5,
25
HUBBUB_BADPARM
= 6,
26
HUBBUB_INVALID
= 7,
27
HUBBUB_FILENOTFOUND
= 8,
28
HUBBUB_NEEDDATA
= 9,
29
HUBBUB_BADENCODING
= 10,
30
31
HUBBUB_UNKNOWN
= 11
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_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_error
hubbub_error
Definition:
errors.h:18
HUBBUB_PAUSED
@ HUBBUB_PAUSED
tokenisation is paused
Definition:
errors.h:22
HUBBUB_FILENOTFOUND
@ HUBBUB_FILENOTFOUND
Definition:
errors.h:27
HUBBUB_REPROCESS
@ HUBBUB_REPROCESS
Definition:
errors.h:20
HUBBUB_NEEDDATA
@ HUBBUB_NEEDDATA
Definition:
errors.h:28
HUBBUB_BADENCODING
@ HUBBUB_BADENCODING
Definition:
errors.h:29
HUBBUB_BADPARM
@ HUBBUB_BADPARM
Definition:
errors.h:25
HUBBUB_ENCODINGCHANGE
@ HUBBUB_ENCODINGCHANGE
Definition:
errors.h:21
HUBBUB_NOMEM
@ HUBBUB_NOMEM
Definition:
errors.h:24
HUBBUB_UNKNOWN
@ HUBBUB_UNKNOWN
Definition:
errors.h:31
HUBBUB_INVALID
@ HUBBUB_INVALID
Definition:
errors.h:26
HUBBUB_OK
@ HUBBUB_OK
No error.
Definition:
errors.h:19
Generated on Sat Jan 4 2025 22:53:33 for Hubbub by
1.9.4