Files
geef/c_src/object.h
Carlos Martín Nieto 9b2a053848 Add object id lookup
2013-03-02 03:27:40 +01:00

23 lines
515 B
C

#ifndef GEEF_OBJECT_H
#define GEEF_OBJECT_H
#include "erl_nif.h"
#include <git2.h>
#include "repository.h"
extern ErlNifResourceType *geef_object_type;
typedef struct {
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_id(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