summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-10-19 15:14:13 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-10-29 00:09:04 +0100
commit45513e6040195f5494d40a2750de4dac7037593f (patch)
tree4064efa34c02047181a78fab4086a228aa832bb1 /include
parent7211fe157e1107d4a9c04a0ecf494a7b9633c400 (diff)
stats/vty: Add stats_vty.c
This file will contain the VTY code related to statistics. This commit adds a minimal file with just as single VTY command: - show stats This command shows all statistical values To enable this and future commands, the main program needs to call stats_vty_add_cmds(). Sponsored-by: On-Waves ehf
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am1
-rw-r--r--include/osmocom/vty/stats.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 7f8dd777..af189c36 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -113,6 +113,7 @@ nobase_include_HEADERS += \
osmocom/vty/buffer.h \
osmocom/vty/command.h \
osmocom/vty/logging.h \
+ osmocom/vty/stats.h \
osmocom/vty/misc.h \
osmocom/vty/telnet_interface.h \
osmocom/vty/vector.h \
diff --git a/include/osmocom/vty/stats.h b/include/osmocom/vty/stats.h
new file mode 100644
index 00000000..eaf854e5
--- /dev/null
+++ b/include/osmocom/vty/stats.h
@@ -0,0 +1,3 @@
+#pragma once
+
+void stats_vty_add_cmds();