File: errors.h

package info (click to toggle)
netsurf 2.9-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 30,680 kB
  • sloc: ansic: 214,165; objc: 8,149; cpp: 6,873; makefile: 1,368; jsp: 1,156; perl: 1,038; asm: 288; sh: 275; python: 8
file content (40 lines) | stat: -rw-r--r-- 759 bytes parent folder | download | duplicates (6)
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
32
33
34
35
36
37
38
39
40
/*
 * 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_

#ifdef __cplusplus
extern "C"
{
#endif

#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_IMPORTS_PENDING  = 8,
	CSS_PROPERTY_NOT_SET = 9
} css_error;

/* Convert a libcss error value to a string */
const char *css_error_to_string(css_error error);

#ifdef __cplusplus
}
#endif

#endif