diff options
author | Gabriele Santomaggio <gabriele.santomaggio@erlang-solutions.com> | 2016-06-26 21:58:37 +0200 |
---|---|---|
committer | Gabriele Santomaggio <gabriele.santomaggio@erlang-solutions.com> | 2016-06-26 21:58:37 +0200 |
commit | 204d5b3e0940cf8675d1223c2d76d33b94178cf4 (patch) | |
tree | e0ed5a70b88c24b970451dcc7a0c9fd972798114 | |
parent | 8c0fdbc0d966514f1ea9d65434367c46a60fae19 (diff) | |
download | erlang-sd_notify-204d5b3e0940cf8675d1223c2d76d33b94178cf4.tar.gz |
added sd_pid_notifyf
-rw-r--r-- | c_src/sd_notify.c | 2 | ||||
-rw-r--r-- | src/sd_notify.erl | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/c_src/sd_notify.c b/c_src/sd_notify.c index 6eed405..7c5bd25 100644 --- a/c_src/sd_notify.c +++ b/c_src/sd_notify.c @@ -69,4 +69,4 @@ static ErlNifFunc nif_funcs[] = }; -ERL_NIF_INIT(sd_notify, nif_funcs, NULL, NULL, NULL, NULL); +ERL_NIF_INIT(sd_notify, nif_funcs, NULL, NULL, NULL, NULL);
\ No newline at end of file diff --git a/src/sd_notify.erl b/src/sd_notify.erl index 6b0f91e..0a69442 100644 --- a/src/sd_notify.erl +++ b/src/sd_notify.erl @@ -27,7 +27,7 @@ -module(sd_notify). --export([sd_notify/2, sd_notifyf/3, sd_pid_notify/3]). +-export([sd_notify/2, sd_notifyf/3, sd_pid_notify/3, sd_pid_notifyf/4]). -on_load(init/0). @@ -61,6 +61,10 @@ sd_pid_notify(_, _, _) -> sd_notifyf(UnsetEnv, Format, Data) -> sd_notify(UnsetEnv, lists:flatten(io_lib:format(Format, Data))). + +sd_pid_notifyf(UnsetEnvPid, UnsetEnv, Format, Data) -> + sd_pid_notify(UnsetEnvPid, UnsetEnv, lists:flatten(io_lib:format(Format, Data))). + %% =================================================================== %% EUnit tests %% =================================================================== |