Neels Hofmeyr | 7685a78 | 2017-01-30 23:30:26 +0100 | [diff] [blame] | 1 | /* OsmoHLR VTY implementation */ |
| 2 | |
| 3 | /* (C) 2016 sysmocom s.f.m.c. GmbH <info@sysmocom.de> |
| 4 | * All Rights Reserved |
| 5 | * |
| 6 | * Author: Neels Hofmeyr <nhofmeyr@sysmocom.de> |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU Affero General Public License as published by |
| 10 | * the Free Software Foundation; either version 3 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU Affero General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU Affero General Public License |
| 19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | * |
| 21 | */ |
| 22 | |
| 23 | #include <osmocom/vty/vty.h> |
| 24 | #include <osmocom/vty/command.h> |
| 25 | #include <osmocom/vty/logging.h> |
| 26 | |
| 27 | #include "hlr_vty.h" |
| 28 | |
| 29 | int hlr_vty_is_config_node(struct vty *vty, int node) |
| 30 | { |
| 31 | switch (node) { |
| 32 | /* add items that are not config */ |
| 33 | case CONFIG_NODE: |
| 34 | return 0; |
| 35 | |
| 36 | default: |
| 37 | return 1; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | void hlr_vty_init(const struct log_info *cat) |
| 42 | { |
| 43 | logging_vty_add_cmds(cat); |
| 44 | } |