summaryrefslogtreecommitdiffstats
path: root/src/ctrl
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-02-16 17:44:09 +0100
committerHarald Welte <laforge@gnumonks.org>2017-02-19 08:54:27 +0000
commit32ee5af8935406578a2b811bd3cec65e980d2918 (patch)
tree6da586c248059c18a3199615c7240a93dd8b584f /src/ctrl
parent8fcc81db6607d44fe135850cef07e7a2123e1171 (diff)
Document ctrl_interface_setup_dynip() function
Change-Id: Ie1d5881dda7a9b797d15e9e1eead8281a994d91e
Diffstat (limited to 'src/ctrl')
-rw-r--r--src/ctrl/control_if.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ctrl/control_if.c b/src/ctrl/control_if.c
index b4afd555..254f9bc8 100644
--- a/src/ctrl/control_if.c
+++ b/src/ctrl/control_if.c
@@ -654,6 +654,14 @@ struct ctrl_handle *ctrl_interface_setup(void *data, uint16_t port,
return ctrl_interface_setup_dynip(data, "127.0.0.1", port, lookup);
}
+/*! \brief Setup CTRL interface on a given address
+ * \param[in] data Pointer which will be made available to each
+ set_..() get_..() verify_..() control command function
+ * \param[in] bind_addr Address on which CTRL socket shall listen
+ * \param[in] port Port on which CTRL socket shall listen
+ * \param[in] lookup Lookup function pointer, can be NULL
+ * \returns ctrl_handle pointer or NULL in case of errors
+ */
struct ctrl_handle *ctrl_interface_setup_dynip(void *data,
const char *bind_addr,
uint16_t port,