From 0be33e3add129843ae1c519477e5904b0330f315 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 16 Apr 2012 18:49:11 +0200 Subject: 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. --- src/common/vty.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/common/vty.c') 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 \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 \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) -- cgit v1.2.3