diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-01-08 10:01:56 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-01-17 12:38:08 +0100 |
commit | 7502a309e8b817036c1ddc38740c214ae416bf29 (patch) | |
tree | 03f90fc9bb5379155494bfb6d3c6f733c63fc55d /lib/tevent/tevent.h | |
parent | fd80e544169db5fb86288b7b22da4e98a88f4477 (diff) | |
download | samba-7502a309e8b817036c1ddc38740c214ae416bf29.tar.gz samba-7502a309e8b817036c1ddc38740c214ae416bf29.tar.xz samba-7502a309e8b817036c1ddc38740c214ae416bf29.zip |
tevent: add doxygen comments for tevent_num_signals() and tevent_sa_info_queue_count()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'lib/tevent/tevent.h')
-rw-r--r-- | lib/tevent/tevent.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h index 3f8e0814a16..d7d4f19effd 100644 --- a/lib/tevent/tevent.h +++ b/lib/tevent/tevent.h @@ -319,6 +319,8 @@ void _tevent_schedule_immediate(struct tevent_immediate *im, * * @note To cancel a signal handler, call talloc_free() on the event returned * from this function. + * + * @see tevent_num_signals, tevent_sa_info_queue_count */ struct tevent_signal *tevent_add_signal(struct tevent_context *ev, TALLOC_CTX *mem_ctx, @@ -340,8 +342,29 @@ struct tevent_signal *_tevent_add_signal(struct tevent_context *ev, #handler, __location__) #endif +/** + * @brief the number of supported signals + * + * This returns value of the configure time TEVENT_NUM_SIGNALS constant. + * + * The 'signum' argument of tevent_add_signal() must be less than + * TEVENT_NUM_SIGNALS. + * + * @see tevent_add_signal + */ size_t tevent_num_signals(void); +/** + * @brief the number of pending realtime signals + * + * This returns value of TEVENT_SA_INFO_QUEUE_COUNT. + * + * The tevent internals remember the last TEVENT_SA_INFO_QUEUE_COUNT + * siginfo_t structures for SA_SIGINFO signals. If the system generates + * more some signals get lost. + * + * @see tevent_add_signal + */ size_t tevent_sa_info_queue_count(void); #ifdef DOXYGEN |