aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2011-05-06 16:38:11 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-09-11 13:08:48 +0200
commit721f0325b53adeb46de1802ee16a56ed706da974 (patch)
treedd2d5b13e90ca954ad8e99f144d8b63d74441d05 /openbsc/include
parent114a010c33a9e06f0187c3fb9a1dcdcb3ab1f9ea (diff)
libctrl: Add function ctrl_cmd_send_to_all
Sends a command to all ctrl connections except the one it originated from.
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/control_cmd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/control_cmd.h b/openbsc/include/openbsc/control_cmd.h
index f4785690b..da598c517 100644
--- a/openbsc/include/openbsc/control_cmd.h
+++ b/openbsc/include/openbsc/control_cmd.h
@@ -10,6 +10,8 @@
#define CTRL_CMD_HANDLED 0
#define CTRL_CMD_REPLY 1
+struct ctrl_handle;
+
enum ctrl_node_type {
CTRL_NODE_ROOT, /* Root elements */
CTRL_NODE_NET, /* Network specific (net.) */
@@ -75,6 +77,7 @@ int ctrl_cmd_exec(vector vline, struct ctrl_cmd *command, vector node, void *dat
int ctrl_cmd_install(enum ctrl_node_type node, struct ctrl_cmd_element *cmd);
int ctrl_cmd_handle(struct ctrl_cmd *cmd, void *data);
int ctrl_cmd_send(struct osmo_wqueue *queue, struct ctrl_cmd *cmd);
+int ctrl_cmd_send_to_all(struct ctrl_handle *ctrl, struct ctrl_cmd *cmd);
struct ctrl_cmd *ctrl_cmd_parse(void *ctx, struct msgb *msg);
struct msgb *ctrl_cmd_make(struct ctrl_cmd *cmd);
struct ctrl_cmd *ctrl_cmd_cpy(void *ctx, struct ctrl_cmd *cmd);