Make cbsp,sbcap mgr available in data model
Change-Id: I60c3ded80c38bcf50b831c6e9db719a8d2cba5b1
This commit is contained in:
parent
bc606f8ea1
commit
7a8a388edf
|
@ -42,6 +42,8 @@ struct cbc_cell_id {
|
||||||
/*********************************************************************************
|
/*********************************************************************************
|
||||||
* CBC itself
|
* CBC itself
|
||||||
*********************************************************************************/
|
*********************************************************************************/
|
||||||
|
struct cbc_cbsp_mgr;
|
||||||
|
struct cbc_sbcap_mgr;
|
||||||
|
|
||||||
struct cbc {
|
struct cbc {
|
||||||
struct {
|
struct {
|
||||||
|
@ -61,6 +63,13 @@ struct cbc {
|
||||||
} ecbe;
|
} ecbe;
|
||||||
} config;
|
} 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 messages; /* cbc_message.list */
|
||||||
struct llist_head expired_messages; /* cbc_message.list */
|
struct llist_head expired_messages; /* cbc_message.list */
|
||||||
struct llist_head peers; /* cbc_peer.list */
|
struct llist_head peers; /* cbc_peer.list */
|
||||||
|
|
|
@ -277,12 +277,12 @@ int main(int argc, char **argv)
|
||||||
exit(1);
|
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");
|
perror("Error binding CBSP port");
|
||||||
exit(1);
|
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");
|
perror("Error binding SBc-AP port\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue