tevent: give the user the chance to ask for TEVENT_NUM_SIGNALS and TEVENT_SA_INFO_QUE...
authorStefan Metzmacher <metze@samba.org>
Mon, 9 Dec 2013 09:32:00 +0000 (10:32 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 11 Dec 2013 21:46:09 +0000 (22:46 +0100)
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>
lib/tevent/tevent_signal.c

index 3d236220a8b9d2d899f8da2553b6335558393fe8..1ff487256e937e7f9c9f83b9f941a619b04dcff0 100644 (file)
 
 #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;