summaryrefslogtreecommitdiff
path: root/zebra/zserv.h
diff options
context:
space:
mode:
authorMark Stapp <mjs.ietf@gmail.com>2024-12-04 11:40:30 -0500
committerGitHub <noreply@github.com>2024-12-04 11:40:30 -0500
commit1d8c0479253abf8d1bc622dbc9b177b5cad4d52b (patch)
tree8be324feddba3e9c2f57f33a9cc26221806b035f /zebra/zserv.h
parentebefd4e74fc6fe0bc69161367abf4049838eb512 (diff)
parent6f677fcb0c000d1331ce86eb573a3c02d040f9b4 (diff)
Merge pull request #17561 from FRRouting/mergify/bp/stable/9.1/pr-17313
zebra: separate zebra ZAPI server open and accept (backport #17313)
Diffstat (limited to 'zebra/zserv.h')
-rw-r--r--zebra/zserv.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/zebra/zserv.h b/zebra/zserv.h
index 90aa4d53f4..c6ad902339 100644
--- a/zebra/zserv.h
+++ b/zebra/zserv.h
@@ -255,15 +255,24 @@ extern void zserv_init(void);
extern void zserv_close(void);
/*
+ * Open Zebra API server socket.
+ *
+ * Create and open the server socket.
+ *
+ * path
+ * where to place the Unix domain socket
+ */
+extern void zserv_open(const char *path);
+
+/*
* Start Zebra API server.
*
- * Allocates resources, creates the server socket and begins listening on the
- * socket.
+ * Allocates resources and begins listening on the server socket.
*
* path
* where to place the Unix domain socket
*/
-extern void zserv_start(char *path);
+extern void zserv_start(const char *path);
/*
* Send a message to a connected Zebra API client.