summaryrefslogtreecommitdiff
path: root/lib/tevent
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-12-09 10:32:00 +0100
committerStefan Metzmacher <metze@samba.org>2013-12-11 22:46:09 +0100
commit4b330ba0a83e17205c851e83097ec8c1dab02a5c (patch)
tree17b88c8bd6f3da334dd933ccea48eb1e1d598104 /lib/tevent
parentcbb93f5442776fbe9810d242f7fe6759adfe3194 (diff)
downloadsamba-4b330ba0a83e17205c851e83097ec8c1dab02a5c.tar.gz
tevent: give the user the chance to ask for TEVENT_NUM_SIGNALS and TEVENT_SA_INFO_QUEUE_COUNT
This way the caller can change use the supported limits without using hardcoded values. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10214 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'lib/tevent')
-rw-r--r--lib/tevent/tevent_signal.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/tevent/tevent_signal.c b/lib/tevent/tevent_signal.c
index 3d236220a8b..1ff487256e9 100644
--- a/lib/tevent/tevent_signal.c
+++ b/lib/tevent/tevent_signal.c
@@ -37,6 +37,16 @@
#define TEVENT_SA_INFO_QUEUE_COUNT 256
+size_t tevent_num_signals(void)
+{
+ return TEVENT_NUM_SIGNALS;
+}
+
+size_t tevent_sa_info_queue_count(void)
+{
+ return TEVENT_SA_INFO_QUEUE_COUNT;
+}
+
struct tevent_sigcounter {
uint32_t count;
uint32_t seen;