libosmoctrl 1.11.0.30-c17053
Osmocom CTRL library
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
control_vty.h
Go to the documentation of this file.
1
3#pragma once
4
5#include <stdint.h>
6
7/* Add the 'ctrl' section to VTY, containing the 'bind' command. */
8int ctrl_vty_init(void *ctx);
9
10/* Obtain the IP address configured by the 'ctrl'/'bind A.B.C.D' VTY command.
11 * This should be fed to ctrl_interface_setup() once the configuration has been
12 * read. */
13const char *ctrl_vty_get_bind_addr(void);
14
15/* Returns configured port passed to the 'line ctrl'/'bind' command or default_port. */
16uint16_t ctrl_vty_get_bind_port(uint16_t default_port);
int ctrl_vty_init(void *ctx)
Definition: control_vty.c:87
uint16_t ctrl_vty_get_bind_port(uint16_t default_port)
Definition: control_vty.c:53
const char * ctrl_vty_get_bind_addr(void)
Definition: control_vty.c:46