aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2017-10-09 08:59:32 +0200
committerJohn Högberg <[email protected]>2017-10-11 16:40:20 +0200
commit8ab02314baa4bf6fd1e3769b7222943a7084db28 (patch)
treed290cf472d4073979fbcf6485b137db7ab716c10 /erts/preloaded/src
parent919ef5de2858e606d4a9be3e0e995b0802c76e33 (diff)
downloadotp-8ab02314baa4bf6fd1e3769b7222943a7084db28.tar.gz
otp-8ab02314baa4bf6fd1e3769b7222943a7084db28.tar.bz2
otp-8ab02314baa4bf6fd1e3769b7222943a7084db28.zip
Add zlib:set_controlling_process/2
Diffstat (limited to 'erts/preloaded/src')
-rw-r--r--erts/preloaded/src/zlib.erl11
1 files changed, 10 insertions, 1 deletions
diff --git a/erts/preloaded/src/zlib.erl b/erts/preloaded/src/zlib.erl
index 3170ab6351..03c9ae38a1 100644
--- a/erts/preloaded/src/zlib.erl
+++ b/erts/preloaded/src/zlib.erl
@@ -20,7 +20,8 @@
-module(zlib).
--export([open/0,close/1,deflateInit/1,deflateInit/2,deflateInit/6,
+-export([open/0,close/1,set_controlling_process/2,
+ deflateInit/1,deflateInit/2,deflateInit/6,
deflateSetDictionary/2,deflateReset/1,deflateParams/3,
deflate/2,deflate/3,deflateEnd/1,
inflateInit/1,inflateInit/2,inflateInit/3,
@@ -128,6 +129,14 @@ close(Z) ->
close_nif(_Z) ->
erlang:nif_error(undef).
+-spec set_controlling_process(Z, Pid) -> 'ok' when
+ Z :: zstream(),
+ Pid :: pid().
+set_controlling_process(Z, Pid) ->
+ set_controller_nif(Z, Pid).
+set_controller_nif(_Z, _Pid) ->
+ erlang:nif_error(undef).
+
-spec deflateInit(Z) -> 'ok' when
Z :: zstream().
deflateInit(Z) ->