aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-02-27 14:36:43 +0100
committerKim Alvefur <zash@zash.se>2022-02-27 14:36:43 +0100
commit04aa101da3dc40c92b1c3ce8e3503367d9dcc5f2 (patch)
treeba8a34afbeb571653d06cdb264151e16a6b4c59a /teal-src
parent22d734e305340a67304c81fdf64dd8662a41874b (diff)
downloadprosody-04aa101da3dc40c92b1c3ce8e3503367d9dcc5f2.tar.gz
prosody-04aa101da3dc40c92b1c3ce8e3503367d9dcc5f2.zip
util.poll: Expose API (epoll or select) used
Could he handy to know for debugging or decisions
Diffstat (limited to 'teal-src')
-rw-r--r--teal-src/util/poll.d.tl5
1 files changed, 5 insertions, 0 deletions
diff --git a/teal-src/util/poll.d.tl b/teal-src/util/poll.d.tl
index 7e346161..28fd982b 100644
--- a/teal-src/util/poll.d.tl
+++ b/teal-src/util/poll.d.tl
@@ -19,6 +19,11 @@ local record lib
new : function () : state
ENOENT : integer
EEXIST : integer
+ enum api_backend
+ "epoll"
+ "select"
+ end
+ api : api_backend
end
return lib