diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-03-10 18:24:35 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-03-10 18:24:35 +0000 |
commit | 44d542eba58d3584d3f1fd344f512cd56034693d (patch) | |
tree | 5b695584dae4af49c68e15b7adab1ddf906bada9 | |
parent | ef235b547bc41f9dc2984b954bf38a4d13bae9e1 (diff) |
export list of e1 drivers and e1 lines
-rw-r--r-- | include/openbsc/e1_input.h | 2 | ||||
-rw-r--r-- | src/e1_input.c | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/include/openbsc/e1_input.h b/include/openbsc/e1_input.h index 7804fa4c6..bf91b4957 100644 --- a/include/openbsc/e1_input.h +++ b/include/openbsc/e1_input.h @@ -144,5 +144,7 @@ int e1_config(struct gsm_bts *bts); int ia_config(struct gsm_bts *bts); int ipaccess_setup(struct e1inp_line *line); +struct llist_head e1inp_driver_list; +struct llist_head e1inp_line_list; #endif /* _E1_INPUT_H */ diff --git a/src/e1_input.c b/src/e1_input.c index a319dcc5e..5e0670b76 100644 --- a/src/e1_input.c +++ b/src/e1_input.c @@ -52,10 +52,10 @@ #define NUM_E1_TS 32 /* list of all E1 drivers */ -static LLIST_HEAD(driver_list); +LLIST_HEAD(e1inp_driver_list); /* list of all E1 lines */ -static LLIST_HEAD(line_list); +LLIST_HEAD(e1inp_line_list); /* to be implemented, e.g. by bsc_hack.c */ void input_event(int event, enum e1inp_sign_type type, struct gsm_bts_trx *trx); @@ -270,7 +270,7 @@ static struct e1inp_line *e1inp_line_get(u_int8_t e1_nr) struct e1inp_line *e1i_line; /* iterate over global list of e1 lines */ - llist_for_each_entry(e1i_line, &line_list, list) { + llist_for_each_entry(e1i_line, &e1inp_line_list, list) { if (e1i_line->num == e1_nr) return e1i_line; } @@ -440,7 +440,7 @@ int e1inp_event(struct e1inp_ts *ts, int evt, u_int8_t tei, u_int8_t sapi) /* register a driver with the E1 core */ int e1inp_driver_register(struct e1inp_driver *drv) { - llist_add_tail(&drv->list, &driver_list); + llist_add_tail(&drv->list, &e1inp_driver_list); return 0; } @@ -452,7 +452,7 @@ int e1inp_line_register(struct e1inp_line *line) for (i = 0; i < NUM_E1_TS; i++) line->ts[i].num = i+1; - llist_add_tail(&line->list, &line_list); + llist_add_tail(&line->list, &e1inp_line_list); return 0; } |