]> git.ipfire.org Git - people/stevee/perl-ipset.git/commitdiff
Add comments for function groups.
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 1 Sep 2022 18:01:39 +0000 (20:01 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 1 Sep 2022 18:01:39 +0000 (20:01 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
IPSet.xs

index ceb6a899d0639710560e96ea68b8c76b33a81e6b..0d24ea570a5e2af7f433614768d98d5f9c882421 100644 (file)
--- a/IPSet.xs
+++ b/IPSet.xs
@@ -11,6 +11,7 @@
 #include <libipset/session.h>
 #include <libipset/types.h>
 
+/* 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;