Change in libosmo-abis[master]: Add function to set Sa bits to common part
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-abis/+/31032 ) Change subject: Add function to set Sa bits to common part ...................................................................... Add function to set Sa bits to common part Change-Id: I4f5f975f0e5f708ae573a1e1ce41c6a08c207fad --- M TODO-RELEASE M include/osmocom/abis/e1_input.h M src/e1_input.c 3 files changed, 17 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/32/31032/1 diff --git a/TODO-RELEASE b/TODO-RELEASE index a848040..417413f 100644 --- a/TODO-RELEASE +++ b/TODO-RELEASE @@ -9,3 +9,4 @@ #library what description / commit summary line libosmo-abis ipa_client_conn_open2 New API added libosmo-abis struct e1inp_line Field added at the end +libosmo-abis struct e1inp_driver Field addet at the end diff --git a/include/osmocom/abis/e1_input.h b/include/osmocom/abis/e1_input.h index 583094b..29c722f 100644 --- a/include/osmocom/abis/e1_input.h +++ b/include/osmocom/abis/e1_input.h @@ -174,6 +174,9 @@ int default_delay; int has_keepalive; const char *bind_addr; + + /* set Sa bits of TS0 */ + int (*set_sa_bits)(struct e1inp_line *line, uint8_t sa_bits); }; struct e1inp_line_ops { @@ -312,6 +315,9 @@ void (*hdlc_recv_cb)(struct e1inp_ts *ts, struct msgb *msg)); +/* configure Sa bits on TS0, if supported by driver */ +int e1inp_ts_set_sa_bits(struct e1inp_line *line, uint8_t sa_bits); + /* obtain a string identifier/name for the given timeslot */ void e1inp_ts_name(char *out, size_t out_len, const struct e1inp_ts *ts); diff --git a/src/e1_input.c b/src/e1_input.c index 6c82d08..deca553 100644 --- a/src/e1_input.c +++ b/src/e1_input.c @@ -444,6 +444,16 @@ return 0; } +int e1inp_ts_set_sa_bits(struct e1inp_line *line, uint8_t sa_bits) +{ + struct e1inp_driver *driver; + + driver = line->driver; + if (!driver->set_sa_bits) + return -ENOTSUP; + return driver->set_sa_bits(line, sa_bits); +} + static int e1inp_line_use_cb(struct osmo_use_count_entry *use_count_entry, int32_t old_use_count, const char *file, int file_line) { -- To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/31032 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmo-abis Gerrit-Branch: master Gerrit-Change-Id: I4f5f975f0e5f708ae573a1e1ce41c6a08c207fad Gerrit-Change-Number: 31032 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas@eversberg.eu> Gerrit-MessageType: newchange
participants (1)
-
jolly