LibYAML-FFI
view release on metacpan or search on metacpan
/**
* @defgroup version Version Information
* @{
*/
/**
* Get the library version as a string.
*
* @returns The function returns the pointer to a static string of the form
* @c "X.Y.Z", where @c X is the major version number, @c Y is a minor version
* number, and @c Z is the patch version number.
*/
YAML_DECLARE(const char *)
yaml_get_version_string(void);
/**
* Get the library version numbers.
*
* @param[out] major Major version number.
* @param[out] minor Minor version number.
* @param[out] patch Patch version number.
*/
YAML_DECLARE(void)
yaml_get_version(int *major, int *minor, int *patch);
/** @} */
/**
* @defgroup basic Basic Types
* @{
*/
/** The character type (UTF-8 octet). */
typedef unsigned char yaml_char_t;
/** The version directive data. */
typedef struct yaml_version_directive_s {
/** The major version number. */
int major;
/** The minor version number. */
int minor;
} yaml_version_directive_t;
/** The tag directive data. */
typedef struct yaml_tag_directive_s {
/** The tag handle. */
yaml_char_t *handle;
/** The tag prefix. */
yaml_char_t *prefix;
} yaml_tag_directive_t;
/** The stream encoding. */
typedef enum yaml_encoding_e {
/** Let the parser choose the encoding. */
YAML_ANY_ENCODING,
/** The default UTF-8 encoding. */
YAML_UTF8_ENCODING,
/** The UTF-16-LE encoding with BOM. */
YAML_UTF16LE_ENCODING,
/** The UTF-16-BE encoding with BOM. */
YAML_UTF16BE_ENCODING
} yaml_encoding_t;
/** Line break types. */
typedef enum yaml_break_e {
/** Let the parser choose the break type. */
YAML_ANY_BREAK,
/** Use CR for line breaks (Mac style). */
YAML_CR_BREAK,
/** Use LN for line breaks (Unix style). */
YAML_LN_BREAK,
/** Use CR LN for line breaks (DOS style). */
YAML_CRLN_BREAK
} yaml_break_t;
/** Many bad things could happen with the parser and emitter. */
typedef enum yaml_error_type_e {
/** No error is produced. */
YAML_NO_ERROR,
/** Cannot allocate or reallocate a block of memory. */
YAML_MEMORY_ERROR,
/** Cannot read or decode the input stream. */
YAML_READER_ERROR,
/** Cannot scan the input stream. */
YAML_SCANNER_ERROR,
/** Cannot parse the input stream. */
YAML_PARSER_ERROR,
/** Cannot compose a YAML document. */
YAML_COMPOSER_ERROR,
/** Cannot write to the output stream. */
YAML_WRITER_ERROR,
/** Cannot emit a YAML stream. */
YAML_EMITTER_ERROR
} yaml_error_type_t;
/** The pointer position. */
typedef struct yaml_mark_s {
/** The position index. */
size_t index;
/** The position line. */
size_t line;
/** The position column. */
size_t column;
} yaml_mark_t;
/** @} */
/**
* @defgroup styles Node Styles
* @{
*/
/** Scalar styles. */
typedef enum yaml_scalar_style_e {
( run in 1.039 second using v1.01-cache-2.11-cpan-8dfa8b56332 )