blob: 2506fdce9dde122d2a64c122b884ea15158b3a79 [file] [log] [blame]
Harald Welteb53e2bf2020-08-21 16:33:42 +02001#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
13struct 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
22extern struct smlc_state *g_smlc;
23
24
25enum {
26 DSMLC,
27 DLB, /* Lb interface */
28};
29
30
31int smlc_ctrl_node_lookup(void *data, vector vline, int *node_type,
32 void **node_data, int *i);
33
34enum smlc_ctrl_node {
35 CTRL_NODE_SMLC = _LAST_CTRL_NODE,
36 _LAST_CTRL_NODE_SMLC
37};