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 41