aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-05-15 15:27:35 +0200
committerKim Alvefur <zash@zash.se>2022-05-15 15:27:35 +0200
commit04c6caba502115d0611b4313c3228865c48f4285 (patch)
tree1d7784a2ed9cff9263a5d1df166d059e68ad6a47 /teal-src
parent9135764484d017855896e143380747bf66336f73 (diff)
downloadprosody-04c6caba502115d0611b4313c3228865c48f4285.tar.gz
prosody-04c6caba502115d0611b4313c3228865c48f4285.zip
teal/moduleapi: Describe timer wrapper
Since it's used in mod_cron
Diffstat (limited to 'teal-src')
-rw-r--r--teal-src/module.d.tl7
1 files changed, 6 insertions, 1 deletions
diff --git a/teal-src/module.d.tl b/teal-src/module.d.tl
index 67b2437c..cb7771e2 100644
--- a/teal-src/module.d.tl
+++ b/teal-src/module.d.tl
@@ -62,7 +62,12 @@ global record moduleapi
send_iq : function (moduleapi, st.stanza_t, util_session, number)
broadcast : function (moduleapi, { string }, st.stanza_t, function)
type timer_callback = function (number, ... : any) : number
- add_timer : function (moduleapi, number, timer_callback, ... : any)
+ record timer_wrapper
+ stop : function (timer_wrapper)
+ disarm : function (timer_wrapper)
+ reschedule : function (timer_wrapper, number)
+ end
+ add_timer : function (moduleapi, number, timer_callback, ... : any) : timer_wrapper
get_directory : function (moduleapi) : string
enum file_mode
"r" "w" "a" "r+" "w+" "a+"