]> andersk Git - libyaml.git/blobdiff - src/api.c
Move yaml/yaml.h to yaml.h and merge version.c to api.c.
[libyaml.git] / src / api.c
index 88e03e7652947d3f4ef4996bf7ba8e3f8edaf758..304775362bfb3d8c375a0d856340768252d614ac 100644 (file)
--- a/src/api.c
+++ b/src/api.c
@@ -3,10 +3,24 @@
 #include <config.h>
 #endif
 
-#include <yaml/yaml.h>
+#include <yaml.h>
 
 #include <assert.h>
 
+YAML_DECLARE(const char *)
+yaml_get_version_string(void)
+{
+    return YAML_VERSION_STRING;
+}
+
+YAML_DECLARE(void)
+yaml_get_version(int *major, int *minor, int *patch)
+{
+    *major = YAML_VERSION_MAJOR;
+    *minor = YAML_VERSION_MINOR;
+    *patch = YAML_VERSION_PATCH;
+}
+
 /*
  * Allocate a dynamic memory block.
  */
This page took 0.025373 seconds and 4 git commands to generate.