libcss
Loading...
Searching...
No Matches
include
libcss
errors.h
Go to the documentation of this file.
1
/*
2
* This file is part of LibCSS.
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 libcss_errors_h_
9
#define libcss_errors_h_
10
11
#ifdef __cplusplus
12
extern
"C"
13
{
14
#endif
15
16
#include <stddef.h>
17
18
typedef
enum
css_error
{
19
CSS_OK
= 0,
20
21
CSS_NOMEM
= 1,
22
CSS_BADPARM
= 2,
23
CSS_INVALID
= 3,
24
CSS_FILENOTFOUND
= 4,
25
CSS_NEEDDATA
= 5,
26
CSS_BADCHARSET
= 6,
27
CSS_EOF
= 7,
28
CSS_IMPORTS_PENDING
= 8,
29
CSS_PROPERTY_NOT_SET
= 9
30
}
css_error
;
31
32
/* Convert a libcss error value to a string */
33
const
char
*
css_error_to_string
(
css_error
error);
34
35
#ifdef __cplusplus
36
}
37
#endif
38
39
#endif
40
css_error_to_string
const char * css_error_to_string(css_error error)
Definition
errors.c:18
css_error
css_error
Definition
errors.h:18
CSS_EOF
@ CSS_EOF
Definition
errors.h:27
CSS_INVALID
@ CSS_INVALID
Definition
errors.h:23
CSS_NOMEM
@ CSS_NOMEM
Definition
errors.h:21
CSS_BADCHARSET
@ CSS_BADCHARSET
Definition
errors.h:26
CSS_IMPORTS_PENDING
@ CSS_IMPORTS_PENDING
Definition
errors.h:28
CSS_BADPARM
@ CSS_BADPARM
Definition
errors.h:22
CSS_NEEDDATA
@ CSS_NEEDDATA
Definition
errors.h:25
CSS_OK
@ CSS_OK
Definition
errors.h:19
CSS_FILENOTFOUND
@ CSS_FILENOTFOUND
Definition
errors.h:24
CSS_PROPERTY_NOT_SET
@ CSS_PROPERTY_NOT_SET
Definition
errors.h:29
Generated on Fri Dec 12 2025 12:50:39 for libcss by
1.9.8