path: root/include/osmocom
diff options
authorNeels Hofmeyr <neels@hofmeyr.de>2017-12-16 03:57:56 +0100
committerHarald Welte <laforge@gnumonks.org>2017-12-18 23:05:49 +0000
commitd53d2169442fd43ed1538c3970c6e7cb6096f20a (patch)
tree7d6353a5d6a7620319697799731aee0db2e4c285 /include/osmocom
parent0ab6eca80a47706375c5d54d829c4dee6e1228fc (diff)
ctrl: prep test: separate new ctrl_handle_msg() from handle_control_read()
In order to allow unit testing the ctrl iface msgb handling, have a separate msgb entry point function from the actual fd read function. An upcoming patch will prove a memory leak in CTRL msgb handling by a unit test that needs this separation. Change-Id: Ie09e39db668b866eeb80399b82e7b04b8f5ad7c3
Diffstat (limited to 'include/osmocom')
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/ctrl/control_if.h b/include/osmocom/ctrl/control_if.h
index d4443287..5fa9588d 100644
--- a/include/osmocom/ctrl/control_if.h
+++ b/include/osmocom/ctrl/control_if.h
@@ -43,3 +43,5 @@ int ctrl_cmd_handle(struct ctrl_handle *ctrl, struct ctrl_cmd *cmd, void *data);
struct ctrl_cmd *ctrl_cmd_exec_from_string(struct ctrl_handle *ch, const char *cmdstr);
int ctrl_lookup_register(ctrl_cmd_lookup lookup);
+int ctrl_handle_msg(struct ctrl_handle *ctrl, struct ctrl_connection *ccon, struct msgb *msg);