diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-02-05 13:54:41 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-02-05 15:31:34 +0100 |
commit | 3016d9f299ea4cfc8961376d20862b9418cfb059 (patch) | |
tree | abea7922884d1b96b8e1e6d8df66e01e1ffe7d6b /openbsc/include | |
parent | 5455243306bdc57f39a38da4d2d191d7d549b67c (diff) |
[E1 INPUT] explicitly configure the E1 input driver for each line
This introduces a new 'e1_input' config node with a command to be
used like:
e1_line 0 driver misdn
This allows us to have different input drivers in the future
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/e1_input.h | 13 | ||||
-rw-r--r-- | openbsc/include/openbsc/vty.h | 1 |
2 files changed, 12 insertions, 2 deletions
diff --git a/openbsc/include/openbsc/e1_input.h b/openbsc/include/openbsc/e1_input.h index 93f9c527f..ca8d5a65a 100644 --- a/openbsc/include/openbsc/e1_input.h +++ b/openbsc/include/openbsc/e1_input.h @@ -114,11 +114,17 @@ struct e1inp_line { /* register a driver with the E1 core */ int e1inp_driver_register(struct e1inp_driver *drv); +/* fine a previously registered driver */ +struct e1inp_driver *e1inp_driver_find(const char *name); + /* register a line with the E1 core */ int e1inp_line_register(struct e1inp_line *line); -/* ensure a certain line exists, return pointer to it */ -struct e1inp_line *e1inp_line_get_create(u_int8_t e1_nr); +/* get a line by its ID */ +struct e1inp_line *e1inp_line_get(u_int8_t e1_nr); + +/* create a line in the E1 input core */ +struct e1inp_line *e1inp_line_create(u_int8_t e1_nr, const char *driver_name); /* find a sign_link for given TEI and SAPI in a TS */ struct e1inp_sign_link * @@ -169,4 +175,7 @@ int ipaccess_setup(struct gsm_network *gsmnet); extern struct llist_head e1inp_driver_list; extern struct llist_head e1inp_line_list; +int e1inp_vty_init(void); +void e1inp_init(void); + #endif /* _E1_INPUT_H */ diff --git a/openbsc/include/openbsc/vty.h b/openbsc/include/openbsc/vty.h index 5cdd204d8..1be81a7f2 100644 --- a/openbsc/include/openbsc/vty.h +++ b/openbsc/include/openbsc/vty.h @@ -29,6 +29,7 @@ enum bsc_vty_node { NS_NODE, BSSGP_NODE, OML_NODE, + E1INP_NODE, NAT_NODE, NAT_BSC_NODE, MSC_NODE, |