Permalink
Browse files

Adds an empty upgrade handler to ossp_uuid NIF

  • Loading branch information...
1 parent 1b61fe4 commit d5f9e3bd54c87618c601e9ade68c82823a1692e2 Yurii Rashkovskii committed May 1, 2012
Showing with 7 additions and 2 deletions.
  1. +6 −1 c_src/ossp_uuid.c
  2. +1 −1 src/ossp_uuid.app.src
View
@@ -260,4 +260,9 @@ static int on_load(ErlNifEnv* env, void** priv_data, ERL_NIF_TERM load_info)
return 0;
}
-ERL_NIF_INIT(ossp_uuid, nif_funcs, &on_load, NULL, NULL, NULL);
+static int on_upgrade(ErlNifEnv* env, void** priv_data, void ** old_priv_data, ERL_NIF_TERM load_info)
+{
+ return 0;
+}
+
+ERL_NIF_INIT(ossp_uuid, nif_funcs, &on_load, NULL, &on_upgrade, NULL);
@@ -1,7 +1,7 @@
{application, ossp_uuid,
[
{description, "OSSP uuid binding"},
- {vsn, "1"},
+ {vsn, "1.1"},
{registered, []},
{applications, [
kernel,

0 comments on commit d5f9e3b

Please sign in to comment.