channel: add name field
This will be useful to display some human-readable type in logs and the VTY.
This commit is contained in:
parent
487734e6d3
commit
d092d6d4e8
|
@ -23,6 +23,7 @@ struct osmo_chan;
|
|||
struct msgb;
|
||||
|
||||
struct osmo_chan_type {
|
||||
char *name;
|
||||
int type;
|
||||
int datasiz;
|
||||
|
||||
|
|
|
@ -356,6 +356,7 @@ static int rsl_read_cb(struct osmo_stream_cli *conn)
|
|||
|
||||
struct osmo_chan_type chan_abis_ipa_cli = {
|
||||
.type = CHAN_ABIS_IPA_CLI,
|
||||
.name = "A-bis IPA client",
|
||||
.datasiz = sizeof(struct chan_abis_ipa_cli),
|
||||
.create = chan_abis_ipa_cli_create,
|
||||
.destroy = chan_abis_ipa_cli_destroy,
|
||||
|
|
|
@ -508,6 +508,7 @@ static int rsl_read_cb(struct osmo_stream_srv *conn)
|
|||
|
||||
struct osmo_chan_type chan_abis_ipa_srv = {
|
||||
.type = CHAN_ABIS_IPA_SRV,
|
||||
.name = "A-bis IPA server",
|
||||
.datasiz = sizeof(struct chan_abis_ipa_srv),
|
||||
.create = chan_abis_ipa_srv_create,
|
||||
.destroy = chan_abis_ipa_srv_destroy,
|
||||
|
|
Loading…
Reference in New Issue