aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2012-08-18 23:58:28 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2012-08-18 23:58:28 +0200
commitd092d6d4e8dc33d0a94a09b6d85870b1256ee5a8 (patch)
tree4342d7b4378574880c019abfd7c1263284e561b0
parent487734e6d362dc51fbb57e50ce8d06e6c3ee7a3e (diff)
channel: add name field
This will be useful to display some human-readable type in logs and the VTY.
-rw-r--r--include/osmocom/netif/channel.h1
-rw-r--r--src/channel/abis_ipa_client.c1
-rw-r--r--src/channel/abis_ipa_server.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/netif/channel.h b/include/osmocom/netif/channel.h
index 75df5ce..6d28f7a 100644
--- a/include/osmocom/netif/channel.h
+++ b/include/osmocom/netif/channel.h
@@ -23,6 +23,7 @@ struct osmo_chan;
struct msgb;
struct osmo_chan_type {
+ char *name;
int type;
int datasiz;
diff --git a/src/channel/abis_ipa_client.c b/src/channel/abis_ipa_client.c
index 079ad35..4b3fb9d 100644
--- a/src/channel/abis_ipa_client.c
+++ b/src/channel/abis_ipa_client.c
@@ -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,
diff --git a/src/channel/abis_ipa_server.c b/src/channel/abis_ipa_server.c
index e26ae99..1b0930f 100644
--- a/src/channel/abis_ipa_server.c
+++ b/src/channel/abis_ipa_server.c
@@ -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,