summaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-11-24 19:52:44 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2019-11-24 19:59:35 +0100
commit70ce871532ab21955e0955d7e230eae65438f047 (patch)
tree0397d381663bc66570260ed6f9c40e324f07922b /include/osmocom
parentd31de237582f6fe3315d61bb9a488d4cda92654e (diff)
vty_app_info.is_config_node: add OSMO_DEPRECATED
Although this OSMO_DEPRECATED doesn't seem to generate a warning when compiling code that sets .is_config_node = foo, it seems a good idea to add the deprecation tag. It is deprecated since commit "vty: track parent nodes also for telnet sessions" I2b32b4fe20732728db6e9cdac7e484d96ab86dc5 Change-Id: I800507b27cb0d536c1a4c203d7f7b90eec05a69c
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/vty/vty.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/osmocom/vty/vty.h b/include/osmocom/vty/vty.h
index 9acaa7d2..b63dc3bf 100644
--- a/include/osmocom/vty/vty.h
+++ b/include/osmocom/vty/vty.h
@@ -5,6 +5,7 @@
#include <stdbool.h>
#include <osmocom/core/linuxlist.h>
+#include <osmocom/core/defs.h>
/*! \defgroup vty VTY (Virtual TTY) interface
* @{
@@ -186,7 +187,9 @@ struct vty_app_info {
int (*go_parent_cb)(struct vty *vty);
/*! OBSOLETED: Implicit parent node tracking has replaced the use of this callback. This callback is no longer
* called, ever, and can be left NULL. */
- int (*is_config_node)(struct vty *vty, int node);
+ int (*is_config_node)(struct vty *vty, int node)
+ OSMO_DEPRECATED("Implicit parent node tracking has replaced the use of this callback. This callback is"
+ " no longer called, ever, and can be left NULL.");
/*! Check if the config is consistent before write */
int (*config_is_consistent)(struct vty *vty);
};