summaryrefslogtreecommitdiff
path: root/src/utils/parserutilserror.h
blob: d2cffb62011686a219833fc69de7d058b557e469 (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
/*
 * 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