Permalink
Browse files

Add on_load NIF skeleton

  • Loading branch information...
Hunter Morris
Hunter Morris committed Mar 12, 2012
1 parent c7934da commit 902895e0eb18188fb8e7e0171f08594f1ab718b8
Showing with 6 additions and 1 deletion.
  1. +6 −1 c_src/bcrypt_nif.c
View
@@ -80,4 +80,9 @@ static ErlNifFunc bcrypt_nif_funcs[] =
{"hashpw", 2, hashpw}
};
ERL_NIF_INIT(bcrypt_nif, bcrypt_nif_funcs, NULL, NULL, NULL, NULL)
static int on_load(ErlNifEnv* env, void** priv_data, ERL_NIF_TERM load_info)
{
return 0;
}
ERL_NIF_INIT(bcrypt_nif, bcrypt_nif_funcs, &on_load, NULL, NULL, NULL)

0 comments on commit 902895e

Please sign in to comment.