Refactor the code into separate files

Separate repository/odb functions into their own file. Add odb_exists
to go through the repository's odb. Adjust the test script.
This commit is contained in:
Carlos Martín Nieto
2012-08-14 02:22:46 +02:00
parent a6c03f17df
commit 27e72e5173
6 changed files with 176 additions and 59 deletions

18
c_src/geef.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef GEEF_H
#define GEEF_H
#include "erl_nif.h"
ERL_NIF_TERM geef_error(ErlNifEnv *env);
typedef struct {
ERL_NIF_TERM ok;
ERL_NIF_TERM error;
ERL_NIF_TERM true;
ERL_NIF_TERM false;
ERL_NIF_TERM repository;
} geef_atoms_t;
extern geef_atoms_t geef_atoms;
#endif