Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  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 css_utils_parserutilserror_h_
  9. #define css_utils_parserutilserror_h_
  10.  
  11. #include <parserutils/errors.h>
  12.  
  13. #include <libcss/errors.h>
  14.  
  15. /**
  16.  * Convert a ParserUtils error into a LibCSS error
  17.  *
  18.  * \param error  The ParserUtils error to convert
  19.  * \return The corresponding LibCSS error
  20.  */
  21. static inline css_error css_error_from_parserutils_error(
  22.                 parserutils_error error)
  23. {
  24.         /* Currently, there's a 1:1 mapping, so we've nothing to do */
  25.         return (css_error) error;
  26. }
  27.  
  28. #endif
  29.  
  30.