summaryrefslogtreecommitdiff
path: root/ares_version.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-24 20:28:04 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-24 20:28:04 +0000
commitcfa535b3a593f08bdee72ff1c8ef393e6d07ac35 (patch)
treea409fbb211837f997428188eafebacc4903b6f69 /ares_version.h
parentd76ed5d861588598fe58287b4a896452ba7950e1 (diff)
downloadc-ares-cfa535b3a593f08bdee72ff1c8ef393e6d07ac35.tar.gz
c-ares-cfa535b3a593f08bdee72ff1c8ef393e6d07ac35.tar.bz2
c-ares-cfa535b3a593f08bdee72ff1c8ef393e6d07ac35.zip
Introducing ares_version(), so that we can have apps get version info about
what particular ares version that is being used.
Diffstat (limited to 'ares_version.h')
-rw-r--r--ares_version.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/ares_version.h b/ares_version.h
new file mode 100644
index 0000000..b99fa1b
--- /dev/null
+++ b/ares_version.h
@@ -0,0 +1,17 @@
+/* $Id$ */
+
+#ifndef ARES__VERSION_H
+#define ARES__VERSION_H
+
+#define ARES_VERSION_MAJOR 1
+#define ARES_VERSION_MINOR 0
+#define ARES_VERSION_PATCH 0
+#define ARES_VERSION ((ARES_VERSION_MAJOR<<16)|\
+ (ARES_VERSION_MINOR<<8)|\
+ (ARES_VERSION_PATCH))
+#define ARES_VERSION_STR "1.0.0"
+
+char *ares_version(int *version);
+
+#endif
+