summaryrefslogtreecommitdiff
path: root/include/git2/common.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-06-16 02:21:33 +0200
committerVicent Marti <tanoku@gmail.com>2011-06-16 02:21:33 +0200
commit536955f9d7995b51d3caa0352d62728c5099543a (patch)
tree227bf40a777e9b3cedb41c665526b080f563b10b /include/git2/common.h
parentef9a6f4cbc4aac143279d7eb37909e78fd7c62cc (diff)
downloadlibgit2-536955f9d7995b51d3caa0352d62728c5099543a.tar.gz
Add method to get the compiled version of the lib
Diffstat (limited to 'include/git2/common.h')
-rw-r--r--include/git2/common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/common.h b/include/git2/common.h
index ba54ce482..58cb1f200 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -113,6 +113,16 @@ typedef struct {
GIT_EXTERN(void) git_strarray_free(git_strarray *array);
+/**
+ * Return the version of the libgit2 library
+ * being currently used.
+ *
+ * @param major Store the major version number
+ * @param minor Store the minor version number
+ * @param rev Store the revision (patch) number
+ */
+GIT_EXTERN(void) git_libgit2_version(int *major, int *minor, int *rev);
+
/** @} */
GIT_END_DECL
#endif