Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Commit

Permalink
Add on_load NIF skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter Morris committed Mar 12, 2012
1 parent c7934da commit 902895e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion c_src/bcrypt_nif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.