summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKirill Simonov <xi@resolvent.net>2006-05-30 17:49:18 +0000
committerKirill Simonov <xi@resolvent.net>2006-05-30 17:49:18 +0000
commit3d790dfd5e1b802ce1ab82ff830d72eadd25e901 (patch)
tree68cc09e68c3b086ff24405d11442b69c1476d0ac /include
parent6eb1ded4c43d20264ed22f0d82f16043417cd765 (diff)
downloadlibyaml-git-3d790dfd5e1b802ce1ab82ff830d72eadd25e901.tar.gz
Complete UTF-8 and UTF-16 decoders.
Reader is mostly done (though untested).
Diffstat (limited to 'include')
-rw-r--r--include/yaml/yaml.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/include/yaml/yaml.h b/include/yaml/yaml.h
index 9ec2c7a..2f32e52 100644
--- a/include/yaml/yaml.h
+++ b/include/yaml/yaml.h
@@ -291,8 +291,15 @@ typedef struct {
* @{
*/
+ /** Error type. */
yaml_error_type_t error;
+ /** Error description. */
+ const char *problem;
+
+ /** The byte about which the problem occured. */
+ size_t problem_offset;
+
/**
* @}
*/
@@ -302,7 +309,7 @@ typedef struct {
* @{
*/
- /** Read handler */
+ /** Read handler. */
yaml_read_handler_t *read_handler;
/** A pointer for passing to the read handler. */
@@ -488,6 +495,18 @@ yaml_free(void *ptr);
#define YAML_BUFFER_SIZE (YAML_RAW_BUFFER_SIZE*3)
+/**
+ * Ensure that the buffer contains at least @a length characters.
+ *
+ * @param[in] parser A parser object.
+ * @param[in] length The number of characters in the buffer.
+ *
+ * @returns @c 1 on success, @c 0 on error.
+ */
+
+int
+yaml_parser_update_buffer(yaml_parser_t *parser, size_t length);
+
/** @} */