libosmoctrl
0.12.0
Osmocom CTRL library
|
#include <string.h>
#include <errno.h>
#include <osmocom/core/fsm.h>
#include <osmocom/ctrl/control_cmd.h>
#include <osmocom/ctrl/control_if.h>
Functions | |
static int | fsm_ctrl_node_lookup (void *data, vector vline, int *node_type, void **node_data, int *i) |
control interface lookup function for FSM's More... | |
static int | get_fsm_inst_state (struct ctrl_cmd *cmd, void *data) |
CTRL_CMD_DEFINE_RO (fsm_inst_state, "state") | |
static int | get_fsm_inst_parent_name (struct ctrl_cmd *cmd, void *data) |
CTRL_CMD_DEFINE_RO (fsm_inst_parent_name, "parent-name") | |
static int | get_fsm_inst_timer (struct ctrl_cmd *cmd, void *data) |
CTRL_CMD_DEFINE_RO (fsm_inst_timer, "timer") | |
static int | get_fsm_inst_dump (struct ctrl_cmd *cmd, void *data) |
CTRL_CMD_DEFINE_RO (fsm_inst_dump, "dump") | |
int | osmo_fsm_ctrl_cmds_install (void) |
CTRL_CMD_DEFINE_RO | ( | fsm_inst_state | , |
"state" | |||
) |
Referenced by get_fsm_inst_dump(), get_fsm_inst_parent_name(), get_fsm_inst_state(), and get_fsm_inst_timer().
CTRL_CMD_DEFINE_RO | ( | fsm_inst_parent_name | , |
"parent-name" | |||
) |
CTRL_CMD_DEFINE_RO | ( | fsm_inst_timer | , |
"timer" | |||
) |
CTRL_CMD_DEFINE_RO | ( | fsm_inst_dump | , |
"dump" | |||
) |
|
static |
control interface lookup function for FSM's
[in] | data | Private data passed to controlif_setup() |
[in] | vline | Vector of the line holding the command string |
[out] | node_type | type (CTRL_NODE_) that was determined |
[out] | node_data | private data of node that was determined |
i | Current index into vline, up to which it is parsed |
References CTRL_NODE_FSM, CTRL_NODE_FSM_INST, and CTRL_NODE_ROOT.
Referenced by osmo_fsm_ctrl_cmds_install().
|
static |
References CTRL_CMD_DEFINE_RO(), CTRL_CMD_ERROR, CTRL_CMD_REPLY, ctrl_cmd::id, ctrl_cmd::node, and ctrl_cmd::reply.
|
static |
References CTRL_CMD_DEFINE_RO(), CTRL_CMD_ERROR, CTRL_CMD_REPLY, ctrl_cmd::node, and ctrl_cmd::reply.
|
static |
References CTRL_CMD_DEFINE_RO(), CTRL_CMD_ERROR, CTRL_CMD_REPLY, ctrl_cmd::node, and ctrl_cmd::reply.
|
static |
References CTRL_CMD_DEFINE_RO(), CTRL_CMD_ERROR, CTRL_CMD_REPLY, ctrl_cmd::node, and ctrl_cmd::reply.
int osmo_fsm_ctrl_cmds_install | ( | void | ) |
References ctrl_cmd_install(), ctrl_lookup_register(), CTRL_NODE_FSM_INST, and fsm_ctrl_node_lookup().
Referenced by ctrl_init().