Osmocom library for A-bis (E1/IP) interface
Go to file
Pablo Neira Ayuso 4e862cbf4b e1_input: rework configuration of virtual E1 line operations
struct e1inp_line_ops {
-       enum e1inp_line_role    role;
-       char                    *addr;
-       void                    *data;
+       union {
+               struct {
+                       enum e1inp_line_role role;      /* BSC or BTS mode. */
+                       const char *addr;               /* IP address .*/
+                       void *dev;                      /* device parameters. */
+               } ipa;
+               struct {
+                       const char *port;       /* e.g. /dev/ttyUSB0 */
+                       unsigned int delay;
+               } rs232;
+       } cfg;

Now this structure contains the configuration details for the
virtual E1 line, instead of using a pointer.

This also get the line_update callback to its original layout:

+       int (*line_update)(struct e1inp_line *line);
2011-08-19 18:43:38 +02:00
include e1_input: rework configuration of virtual E1 line operations 2011-08-19 18:43:38 +02:00
m4 add missing m4 directory 2011-06-05 18:36:27 +02:00
src e1_input: rework configuration of virtual E1 line operations 2011-08-19 18:43:38 +02:00
tests e1_input: rework configuration of virtual E1 line operations 2011-08-19 18:43:38 +02:00
.gitignore initial commit of libosmo-abis 2011-06-05 18:32:44 +02:00
AUTHORS add AUTHORS and COPYING files 2011-07-02 17:42:31 +02:00
COPYING add AUTHORS and COPYING files 2011-07-02 17:42:31 +02:00
Makefile.am initial commit of libosmo-abis 2011-06-05 18:32:44 +02:00
configure.ac talloc: revert to use talloc inside libosmocore 2011-07-18 14:51:16 +02:00
git-version-gen initial commit of libosmo-abis 2011-06-05 18:32:44 +02:00
libosmoabis.pc.in initial commit of libosmo-abis 2011-06-05 18:32:44 +02:00