blob: 55bd379a01de97664ac3b81a1a2c235faa6cd9ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*
* This file is part of LibCSS.
* Licensed under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
* Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org>
*/
#ifndef libcss_errors_h_
#define libcss_errors_h_
#include <stddef.h>
typedef enum css_error {
CSS_OK = 0,
CSS_NOMEM = 1,
CSS_BADPARM = 2,
CSS_INVALID = 3,
CSS_FILENOTFOUND = 4,
CSS_NEEDDATA = 5,
CSS_BADCHARSET = 6,
CSS_EOF = 7,
} css_error;
/* Convert a libcss error value to a string */
const char *css_error_to_string(css_error error);
/* Convert a string to a libcss error value */
css_error css_error_from_string(const char *str, size_t len);
#endif
|