aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/vty.h
blob: c815c85ab463a177a8d76ba3358fd2cc2691d37e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef OSMOBTS_VTY_H
#define OSMOBTS_VTY_H

#include <osmocom/vty/vty.h>
#include <osmocom/vty/command.h>

enum bts_vty_node {
	/* PHY_NODE must come before BTS node to ensure the phy
	 * instances are created at the time the TRX nodes want to refer
	 * to them */
	PHY_NODE = _LAST_OSMOVTY_NODE + 1,
	PHY_INST_NODE,
	BTS_NODE,
	TRX_NODE,
};

extern struct cmd_element cfg_bts_auto_band_cmd;
extern struct cmd_element cfg_bts_no_auto_band_cmd;

struct phy_instance *vty_get_phy_instance(struct vty *vty, int phy_nr, int inst_nr);

int bts_vty_go_parent(struct vty *vty);
int bts_vty_is_config_node(struct vty *vty, int node);

int bts_vty_init(void *ctx);

struct gsm_network *gsmnet_from_vty(struct vty *v);

extern struct vty_app_info bts_vty_info;
extern struct gsm_bts *g_bts;

enum bts_vty_cmd_attr {
	BTS_VTY_ATTR_NEW_LCHAN,
	BTS_VTY_TRX_POWERCYCLE,
	/* NOTE: up to 32 entries */
};

#endif