Index: libyaml/trunk/include/yaml/yaml.h
===================================================================
--- libyaml/trunk/include/yaml/yaml.h	(revision 180)
+++ libyaml/trunk/include/yaml/yaml.h	(revision 181)
@@ -292,5 +292,12 @@
      */
 
+    /** Error type. */
     yaml_error_type_t error;
+
+    /** Error description. */
+    const char *problem;
+
+    /** The byte about which the problem occured. */
+    size_t problem_offset;
 
     /**
@@ -303,5 +310,5 @@
      */
 
-    /** Read handler */
+    /** Read handler. */
     yaml_read_handler_t *read_handler;
 
@@ -489,4 +496,16 @@
 #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);
+
 /** @} */
 
