aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-04-16 18:49:11 +0200
committerHarald Welte <laforge@gnumonks.org>2012-04-19 09:38:30 +0200
commit0be33e3add129843ae1c519477e5904b0330f315 (patch)
tree0c0c5d0b1e59988a7ac300be99fe1f49ccda8813 /src/common
parentb03f8ae4f05b16997c3db5ed9454672a0d18e679 (diff)
common: Add the copyright text to the vty_app_info
This will make app -V print the copyright information like the other applications of our universe. An BTS integration that want to list additionaly copyright holders needs to access the vty_app_info and create a new copyright string.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/vty.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/common/vty.c b/src/common/vty.c
index 83a3054a..0a30b401 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -102,19 +102,20 @@ gDEFUN(ournode_end, ournode_end_cmd, "end",
return CMD_SUCCESS;
}
+static const char osmobts_copyright[] =
+ "Copyright (C) 2010, 2011 by Harald Welte, Andreas Eversberg and On-Waves\r\n"
+ "License AGPLv3+: GNU AGPL version 3 or later <http://gnu.org/licenses/agpl-3.0.html>\r\n"
+ "This is free software: you are free to change and redistribute it.\r\n"
+ "There is NO WARRANTY, to the extent permitted by law.\r\n";
+
struct vty_app_info bts_vty_info = {
.name = "OsmoBTS",
.version = PACKAGE_VERSION,
+ .copyright = osmobts_copyright,
.go_parent_cb = bts_vty_go_parent,
.is_config_node = bts_vty_is_config_node,
};
-const char *osmobts_copyright =
- "Copyright (C) 2010, 2011 by Harald Welte, Andreas Eversberg and On-Waves\r\n"
- "License AGPLv3+: GNU AGPL version 3 or later <http://gnu.org/licenses/agpl-3.0.html>\r\n"
- "This is free software: you are free to change and redistribute it.\r\n"
- "There is NO WARRANTY, to the extent permitted by law.\r\n";
-
extern struct gsm_network bts_gsmnet;
struct gsm_network *gsmnet_from_vty(struct vty *v)