summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-04-16 16:57:40 +0200
committerHarald Welte <laforge@gnumonks.org>2017-04-26 09:22:19 +0000
commitd6b1f85fd81c3dd267186830a671db88c360054f (patch)
tree7db79c03c19990fe5ca4715d1e7b0139586a3965 /include
parenta81055db1dc2046f57f1c78f055f693b5a4e3308 (diff)
ctrl: Allow installation of additional node lookup helpers
The existing code assumes that the main application knows about all control command nodes and can thus present one lookup function. As libraries are getting their own control interface handling, this is too restrictive, and we need a way how library code can dynamically register more node lookup helpers. We can now do this by means of a ctrl_lookup_register() function. Change-Id: Ib69908d1c57f5bb721d5496e3b4a5258fca450e3
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/ctrl/control_if.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/ctrl/control_if.h b/include/osmocom/ctrl/control_if.h
index f2af1dba..a740a961 100644
--- a/include/osmocom/ctrl/control_if.h
+++ b/include/osmocom/ctrl/control_if.h
@@ -29,3 +29,5 @@ struct ctrl_handle *ctrl_interface_setup_dynip(void *data,
ctrl_cmd_lookup lookup);
struct ctrl_connection *osmo_ctrl_conn_alloc(void *ctx, void *data);
int ctrl_cmd_handle(struct ctrl_handle *ctrl, struct ctrl_cmd *cmd, void *data);
+
+int ctrl_lookup_register(ctrl_cmd_lookup lookup);