Expose git_libgit2_version

This commit is contained in:
Carlos Martín Nieto
2013-04-01 15:08:05 +02:00
parent c2d1acbbe6
commit f41ff25a59
4 changed files with 26 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
#include "commit.h"
#include "tree.h"
#include "blob.h"
#include "library.h"
#include "geef.h"
#include <stdio.h>
#include <string.h>
@@ -112,6 +113,7 @@ static ErlNifFunc geef_funcs[] =
{"tree_bypath", 2, geef_tree_bypath},
{"blob_size", 1, geef_blob_size},
{"blob_content", 1, geef_blob_content},
{"library_version", 0, geef_library_version},
};
ERL_NIF_INIT(geef, geef_funcs, load, NULL, upgrade, unload)