Harald Welte | b53e2bf | 2020-08-21 16:33:42 +0200 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <osmocom/core/linuxlist.h> |
| 4 | #include <osmocom/core/logging.h> |
| 5 | #include <osmocom/core/rate_ctr.h> |
| 6 | #include <osmocom/core/stat_item.h> |
| 7 | #include <osmocom/core/tdef.h> |
| 8 | |
| 9 | #include <osmocom/ctrl/control_if.h> |
| 10 | |
| 11 | #include <osmocom/sigtran/sccp_sap.h> |
| 12 | |
| 13 | struct smlc_state { |
| 14 | struct osmo_sccp_user *sccp_user; |
| 15 | struct ctrl_handle *ctrl; |
| 16 | |
| 17 | struct rate_ctr_group *ctrs; |
| 18 | struct osmo_stat_item_group *statg; |
| 19 | struct osmo_tdef *T_defs; |
| 20 | }; |
| 21 | |
| 22 | extern struct smlc_state *g_smlc; |
| 23 | |
| 24 | |
| 25 | enum { |
| 26 | DSMLC, |
| 27 | DLB, /* Lb interface */ |
| 28 | }; |
| 29 | |
| 30 | |
| 31 | int smlc_ctrl_node_lookup(void *data, vector vline, int *node_type, |
| 32 | void **node_data, int *i); |
| 33 | |
| 34 | enum smlc_ctrl_node { |
| 35 | CTRL_NODE_SMLC = _LAST_CTRL_NODE, |
| 36 | _LAST_CTRL_NODE_SMLC |
| 37 | }; |