summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-03-15 13:20:23 +0100
committerMax <msuraev@sysmocom.de>2017-05-09 09:11:05 +0000
commitc65c5b4ea075ef6cef11fff9442ae0b15c1d6af7 (patch)
tree395a66908aaba8640e5aa2c8496919fe517009ef /include
parent584f4b69d6d8bc0990c923ee5a144a7e3426b69a (diff)
vty: cleanup logging functions
* remove unused parameter from logging_vty_add_cmds() * mark log level descriptors static * change internal static function int check_log_to_target() to more appropriate bool should_log_to_target() * deprecate log_vty_command_*() from public API as it should only be used by logging_vty_add_cmds() Change-Id: I0e9ddd7ba3ce211302d99a3494eb408907a2916e Related: OS#71
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/core/logging.h4
-rw-r--r--include/osmocom/vty/logging.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h
index 41a5d775..77343e96 100644
--- a/include/osmocom/core/logging.h
+++ b/include/osmocom/core/logging.h
@@ -332,8 +332,8 @@ void log_add_target(struct log_target *target);
void log_del_target(struct log_target *target);
/* Generate command string for VTY use */
-const char *log_vty_command_string(const struct log_info *info);
-const char *log_vty_command_description(const struct log_info *info);
+const char *log_vty_command_string() OSMO_DEPRECATED("For internal use inside libosmocore only.");
+const char *log_vty_command_description() OSMO_DEPRECATED("For internal use inside libosmocore only.");
struct log_target *log_target_find(int type, const char *fname);
extern struct llist_head osmo_log_target_list;
diff --git a/include/osmocom/vty/logging.h b/include/osmocom/vty/logging.h
index 9e4b98f9..544d1177 100644
--- a/include/osmocom/vty/logging.h
+++ b/include/osmocom/vty/logging.h
@@ -4,6 +4,6 @@
#define FILTER_STR "Filter log messages\n"
struct log_info;
-void logging_vty_add_cmds(const struct log_info *cat);
+void logging_vty_add_cmds();
struct vty;
struct log_target *osmo_log_vty2tgt(struct vty *vty);