From d6b1f85fd81c3dd267186830a671db88c360054f Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 16 Apr 2017 16:57:40 +0200 Subject: 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 --- include/osmocom/ctrl/control_if.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/osmocom/ctrl/control_if.h') 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); -- cgit v1.2.3