aboutsummaryrefslogtreecommitdiffstats
path: root/src/hlr_vty.h
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-01-30 23:30:26 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-02-01 13:58:50 +0100
commit7685a7875743f6ccc72f814d7c620214703ddeba (patch)
treed820e05190bd433ba962069d8263617b25bfe60c /src/hlr_vty.h
parent7f9491fe5fa8b4e6dba1bf4087c5aede2fd1daf9 (diff)
main: add VTY and '-c config-file' option
Add config file, mainly for logging control. Open VTY on the OMSO_VTY_PORT_HLR added to libosmocore in commit 92fa18e6b800a27aa064a5fb8321cddd7383ae20 aka change-id I08cb52d9399a27e6876e45da36f434708c4fddef. Add hlr_vty.h/c for standard VTY setup. Add -c option to pass config file. Add --version option. Change-Id: Iedb884345a597371a337b0c67eb6013b7d5d1ce1
Diffstat (limited to 'src/hlr_vty.h')
-rw-r--r--src/hlr_vty.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/hlr_vty.h b/src/hlr_vty.h
new file mode 100644
index 0000000..abc9804
--- /dev/null
+++ b/src/hlr_vty.h
@@ -0,0 +1,29 @@
+/* OsmoHLR VTY implementation */
+
+/* (C) 2016 sysmocom s.f.m.c. GmbH <info@sysmocom.de>
+ * All Rights Reserved
+ *
+ * Author: Neels Hofmeyr <nhofmeyr@sysmocom.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#pragma once
+
+#include <osmocom/core/logging.h>
+#include <osmocom/vty/vty.h>
+
+int hlr_vty_is_config_node(struct vty *vty, int node);
+void hlr_vty_init(const struct log_info *cat);