From 2dcd701c538a37f137406a83fb9334b622c536b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Sun, 31 Mar 2013 22:24:20 +0200 Subject: [PATCH] Implement a dummy upgrade function We don't keep anything in priv, so there's nothing for us to do. --- c_src/geef.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/c_src/geef.c b/c_src/geef.c index 5bbd5cc..c55e49f 100644 --- a/c_src/geef.c +++ b/c_src/geef.c @@ -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)