channel: add name field

This will be useful to display some human-readable type in logs
and the VTY.
This commit is contained in:
Pablo Neira Ayuso 2012-08-18 23:58:28 +02:00
parent 487734e6d3
commit d092d6d4e8
3 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@ struct osmo_chan;
struct msgb;
struct osmo_chan_type {
char *name;
int type;
int datasiz;

View File

@ -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,

View File

@ -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,