summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-10-24 02:15:36 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-10-24 02:15:36 +0000
commit9ef3a9f8b2704693496af12120ea3ab40389bf7b (patch)
tree9ed582b049881f1271a6b02978f1ed6d28a4f948 /src/include
parent422d91b2b0a2b8b3a8af510cc55b1400c60be303 (diff)
downloadskalibs-9ef3a9f8b2704693496af12120ea3ab40389bf7b.tar.xz
Add the alarm library, first draft.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/skalibs/alarm.h13
-rw-r--r--src/include/skalibs/stddjb.h1
2 files changed, 14 insertions, 0 deletions
diff --git a/src/include/skalibs/alarm.h b/src/include/skalibs/alarm.h
new file mode 100644
index 0000000..9c2951a
--- /dev/null
+++ b/src/include/skalibs/alarm.h
@@ -0,0 +1,13 @@
+/* ISC license. */
+
+#ifndef ALARM_H
+#define ALARM_H
+
+#include <skalibs/tai.h>
+
+extern int alarm_milliseconds (unsigned int) ;
+extern int alarm_timeout (tain_t const *) ;
+extern int alarm_deadline (tain_t const *) ;
+extern void alarm_disable (void) ;
+
+#endif
diff --git a/src/include/skalibs/stddjb.h b/src/include/skalibs/stddjb.h
index e265003..3ebd219 100644
--- a/src/include/skalibs/stddjb.h
+++ b/src/include/skalibs/stddjb.h
@@ -15,6 +15,7 @@
#include <skalibs/ip46.h>
#include <skalibs/setgroups.h>
+#include <skalibs/alarm.h>
#include <skalibs/alloc.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/bitarray.h>