Allow getting a tree entry

This commit is contained in:
Carlos Martín Nieto
2013-03-02 02:56:58 +01:00
parent 1807ba4374
commit b5b68cce8b
8 changed files with 125 additions and 6 deletions

View File

@@ -3,15 +3,19 @@
#include "erl_nif.h"
#include <git2.h>
#include "repository.h"
extern ErlNifResourceType *geef_object_type;
typedef struct {
git_object *obj;
git_object *obj;
geef_repository *repo;
} geef_object;
ERL_NIF_TERM geef_object_lookup(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]);
ERL_NIF_TERM geef_object_type2atom(const git_otype type);
void geef_object_free(ErlNifEnv *env, void *cd);
#endif