diff options
Diffstat (limited to 'src/utils/parserutilserror.h')
-rw-r--r-- | src/utils/parserutilserror.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/utils/parserutilserror.h b/src/utils/parserutilserror.h new file mode 100644 index 0000000..d2cffb6 --- /dev/null +++ b/src/utils/parserutilserror.h @@ -0,0 +1,29 @@ +/* + * 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 css_utils_parserutilserror_h_ +#define css_utils_parserutilserror_h_ + +#include <parserutils/errors.h> + +#include <libcss/errors.h> + +/** + * Convert a ParserUtils error into a LibCSS error + * + * \param error The ParserUtils error to convert + * \return The corresponding LibCSS error + */ +static inline css_error css_error_from_parserutils_error( + parserutils_error error) +{ + /* Currently, there's a 1:1 mapping, so we've nothing to do */ + return (css_error) error; +} + +#endif + |