summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2024-06-24 11:10:07 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2024-06-27 04:14:38 +0200
commitf3b6661ddda9a9c2591444799ff88cd82621d06b (patch)
treeae4ac9154932587ffe1c8acc64effb9fb44806c1 /nest
parenta95fff37937171302167e670bd8b6e80d447cf65 (diff)
Additional CLI sockets can be now configured in the config file
If the user has such a need, they may configure additional sockets in the config file. This may work for e.g. some advanced access control.
Diffstat (limited to 'nest')
-rw-r--r--nest/cli.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/nest/cli.h b/nest/cli.h
index a9848a89..c20f9c47 100644
--- a/nest/cli.h
+++ b/nest/cli.h
@@ -55,12 +55,16 @@ struct cli_config {
#define TLIST_ITEM n
#define TLIST_DEFINED_BEFORE
#define TLIST_WANT_ADD_TAIL
+#define TLIST_WANT_WALK
TLIST_DEFAULT_NODE;
const char *name;
+ struct config *config;
uint uid, gid, mode;
};
#include "lib/tlists.h"
+void cli_config_listen(struct cli_config *, const char *);
+
extern pool *cli_pool;
extern struct cli *this_cli; /* Used during parsing */