Implement a dummy upgrade function

We don't keep anything in priv, so there's nothing for us to do.
This commit is contained in:
Carlos Martín Nieto
2013-03-31 22:24:20 +02:00
parent 2d1d1456ec
commit 2dcd701c53

View File

@@ -60,6 +60,11 @@ static int load(ErlNifEnv *env, void **priv, ERL_NIF_TERM load_info)
return 0;
}
int upgrade(ErlNifEnv* env, void** priv_data, void** old_priv_data, ERL_NIF_TERM load_info)
{
return 0;
}
static void unload(ErlNifEnv* env, void* priv_data)
{
git_threads_shutdown();
@@ -109,4 +114,4 @@ static ErlNifFunc geef_funcs[] =
{"blob_content", 1, geef_blob_content},
};
ERL_NIF_INIT(geef, geef_funcs, load, NULL, NULL, unload)
ERL_NIF_INIT(geef, geef_funcs, load, NULL, upgrade, unload)