From 0dc88f2aea46e1d2f524a0f50aff881e7e72487b Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Thu, 1 Sep 2022 20:01:39 +0200 Subject: [PATCH] Add comments for function groups. Signed-off-by: Stefan Schantl --- IPSet.xs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/IPSet.xs b/IPSet.xs index ceb6a89..0d24ea5 100644 --- a/IPSet.xs +++ b/IPSet.xs @@ -11,6 +11,7 @@ #include #include +/* Private functions */ static int print_outfm_to_string(struct ipset_session *session, void *p, const char *fmt, ...) @@ -105,7 +106,6 @@ init() // Init a new IPSet session session = ipset_session_init(NULL, NULL); - // Abort if the session could not be initialized. if (!session) { croak("Cannot initialize ipset session.\n"); @@ -334,6 +334,9 @@ setname_exists(session, setname) OUTPUT: RETVAL +# +# Get functions to ask for various data or receive error messages. +# void get_sets(session) struct ipset_session *session; @@ -400,6 +403,9 @@ get_error_message(session) OUTPUT: RETVAL +# +# Functions to tidy up +# void DESTROY(session) struct ipset_session *session; -- 2.47.2