mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-27 16:59:41 +03:00
bb2bbc6b91
git-svn-id: svn://kolibrios.org@4364 a494cfbc-eb01-0410-851d-a64ba20cac60
41 lines
954 B
C
41 lines
954 B
C
/*
|
|
* This file is part of LibParserUtils.
|
|
* Licensed under the MIT License,
|
|
* http://www.opensource.org/licenses/mit-license.php
|
|
* Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org>
|
|
*/
|
|
|
|
#ifndef parserutils_errors_h_
|
|
#define parserutils_errors_h_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#include <stddef.h>
|
|
|
|
typedef enum parserutils_error {
|
|
PARSERUTILS_OK = 0,
|
|
|
|
PARSERUTILS_NOMEM = 1,
|
|
PARSERUTILS_BADPARM = 2,
|
|
PARSERUTILS_INVALID = 3,
|
|
PARSERUTILS_FILENOTFOUND = 4,
|
|
PARSERUTILS_NEEDDATA = 5,
|
|
PARSERUTILS_BADENCODING = 6,
|
|
PARSERUTILS_EOF = 7
|
|
} parserutils_error;
|
|
|
|
/* Convert a parserutils error value to a string */
|
|
const char *parserutils_error_to_string(parserutils_error error);
|
|
/* Convert a string to a parserutils error value */
|
|
parserutils_error parserutils_error_from_string(const char *str, size_t len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|