summaryrefslogtreecommitdiff
path: root/src/api.c
diff options
context:
space:
mode:
authorKirill Simonov <xi@resolvent.net>2006-07-03 13:49:14 +0000
committerKirill Simonov <xi@resolvent.net>2006-07-03 13:49:14 +0000
commit5eff53a4ac5d9d9563d5e6fdc073914d6ea88b49 (patch)
tree987c20174f5dbe6b13df1484796280058dc8a8e7 /src/api.c
parent26687d7db8333d9f3562cc701f0bfcc47369eb88 (diff)
downloadlibyaml-git-5eff53a4ac5d9d9563d5e6fdc073914d6ea88b49.tar.gz
Move yaml/yaml.h to yaml.h and merge version.c to api.c.
Diffstat (limited to 'src/api.c')
-rw-r--r--src/api.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/api.c b/src/api.c
index 88e03e7..3047753 100644
--- 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.
*/