Move vty stuff to its own header cbc_vty.h

Change-Id: Ib793a74befb7eaad66d19967c28acb4baf52ea69
This commit is contained in:
Pau Espin 2022-07-20 16:38:16 +02:00
parent a346b88b42
commit 28ccced217
5 changed files with 13 additions and 10 deletions

View File

@ -1,6 +1,7 @@
noinst_HEADERS = \
cbc_data.h \
cbc_peer.h \
cbc_vty.h \
cbsp_server.h \
charset.h \
internal.h \

View File

@ -0,0 +1,10 @@
#pragma once
enum cbc_vty_node {
CBC_NODE = _LAST_OSMOVTY_NODE + 1,
PEER_NODE,
CBSP_NODE,
SBcAP_NODE,
ECBE_NODE,
};
void cbc_vty_init(void);

View File

@ -41,16 +41,6 @@ enum sbcap_server_event {
int rest_api_init(void *ctx, const char *bind_addr, uint16_t port);
void rest_api_fin(void);
/* cbc_vty.c */
enum cbc_vty_node {
CBC_NODE = _LAST_OSMOVTY_NODE + 1,
PEER_NODE,
CBSP_NODE,
SBcAP_NODE,
ECBE_NODE,
};
void cbc_vty_init(void);
/* message_handling.c */
struct cbc_message *cbc_message_alloc(void *ctx, const struct cbc_message *cbcmsg);
int cbc_message_new(const struct cbc_message *cbcmsg, struct rest_it_op *op);

View File

@ -49,6 +49,7 @@
#include <osmocom/cbc/cbsp_server.h>
#include <osmocom/cbc/sbcap_server.h>
#include <osmocom/cbc/cbc_data.h>
#include <osmocom/cbc/cbc_vty.h>
static void *tall_cbc_ctx;
struct cbc *g_cbc;

View File

@ -32,6 +32,7 @@
#include <osmocom/cbc/cbc_data.h>
#include <osmocom/cbc/cbc_peer.h>
#include <osmocom/cbc/cbc_vty.h>
#include <osmocom/cbc/internal.h>
#include <osmocom/cbc/cbsp_server.h>
#include <osmocom/cbc/sbcap_server.h>