Skip to content

Commit

Permalink
Add remaining new API functions
Browse files Browse the repository at this point in the history
  • Loading branch information
filmor authored and hansihe committed May 31, 2019
1 parent b604eb8 commit 7f40f98
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions erl_nif_sys/gen_api.erl
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,21 @@ api_list(Opts) -> [
{"", "dummy_enif_vfprintf", ""},
{"", "dummy_enif_vsnprintf", ""},

{"c_int", "enif_make_map_from_arrays", "env: *mut ErlNifEnv, keys: *const ERL_NIF_TERM, values: *const ERL_NIF_TERM, cnt: usize, map_out: *mut ERL_NIF_TERM"}
{"c_int", "enif_make_map_from_arrays", "env: *mut ErlNifEnv, keys: *const ERL_NIF_TERM, values: *const ERL_NIF_TERM, cnt: usize, map_out: *mut ERL_NIF_TERM"}
];
false -> []
end ++
case proplists:get_bool(nif_2_15, Opts) of
true -> [
{"ErlNifTermType", "enif_term_type", "env: *mut ErlNifEnv, term: *const ERL_NIF_TERM"}
{"ErlNifTermType", "enif_term_type", "env: *mut ErlNifEnv, term: *const ERL_NIF_TERM"},

{"c_int", "enif_compare_pids", "pid1: *const ErlNifPid, pid2: *const ErlNifPid"},
{"c_int", "enif_is_pid_undefined", "pid: *const ErlNifPid"},
{"", "enif_set_pid_undefined", "pid: *mut ErlNifPid"},
{"ERL_NIF_TERM", "enif_make_monitor_term", "env: *mut ErlNifEnv, mon: *const ErlNifMonitor"},

{"c_int", "enif_select_read", "env: *mut ErlNifEnv, e: ErlNifEvent, obj: *const c_void, pid: *const ErlNifPid, msg: *const ERL_NIF_TERM, msg_env: *mut ErlNifEnv"},
{"c_int", "enif_select_write", "env: *mut ErlNifEnv, e: ErlNifEvent, obj: *const c_void, pid: *const ErlNifPid, msg: *const ERL_NIF_TERM, msg_env: *mut ErlNifEnv"}
];
false -> []
end.
Expand Down

0 comments on commit 7f40f98

Please sign in to comment.