Make cbsp,sbcap mgr available in data model

Change-Id: I60c3ded80c38bcf50b831c6e9db719a8d2cba5b1
This commit is contained in:
Pau Espin 2022-07-21 20:39:23 +02:00
parent bc606f8ea1
commit 7a8a388edf
2 changed files with 11 additions and 2 deletions

View File

@ -42,6 +42,8 @@ struct cbc_cell_id {
/*********************************************************************************
* CBC itself
*********************************************************************************/
struct cbc_cbsp_mgr;
struct cbc_sbcap_mgr;
struct cbc {
struct {
@ -61,6 +63,13 @@ struct cbc {
} ecbe;
} config;
struct {
struct cbc_cbsp_mgr *mgr;
} cbsp;
struct {
struct cbc_sbcap_mgr *mgr;
} sbcap;
struct llist_head messages; /* cbc_message.list */
struct llist_head expired_messages; /* cbc_message.list */
struct llist_head peers; /* cbc_peer.list */

View File

@ -277,12 +277,12 @@ int main(int argc, char **argv)
exit(1);
}
if (cbc_cbsp_mgr_create(tall_cbc_ctx) == NULL) {
if (!(g_cbc->cbsp.mgr = cbc_cbsp_mgr_create(tall_cbc_ctx))) {
perror("Error binding CBSP port");
exit(1);
}
if (cbc_sbcap_mgr_create(tall_cbc_ctx) == NULL) {
if (!(g_cbc->sbcap.mgr = cbc_sbcap_mgr_create(tall_cbc_ctx))) {
perror("Error binding SBc-AP port\n");
exit(1);
}