Introduce geef_index
This commit is contained in:
21
c_src/index.h
Normal file
21
c_src/index.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef GEEF_INDEX_H
|
||||
#define GEEF_INDEX_H
|
||||
|
||||
#include "erl_nif.h"
|
||||
#include <git2.h>
|
||||
#include "repository.h"
|
||||
|
||||
extern ErlNifResourceType *geef_index_type;
|
||||
|
||||
typedef struct {
|
||||
git_index *index;
|
||||
} geef_index;
|
||||
|
||||
void geef_index_free(ErlNifEnv *env, void *cd);
|
||||
|
||||
ERL_NIF_TERM geef_index_write(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]);
|
||||
ERL_NIF_TERM geef_index_write_tree(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]);
|
||||
ERL_NIF_TERM geef_index_clear(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user