From 08aaded3b88dfe1da70a2923932c909e389d265e Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 14 Sep 2010 02:24:03 +0800 Subject: vty: Add functions to access index and node It is easier to call these two functions from bindings than wrapping the vty structure and figuring out the alignment of the enum on all different ABIs. --- include/osmocom/vty/vty.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/osmocom/vty/vty.h b/include/osmocom/vty/vty.h index e5a9d0d7..8035585d 100644 --- a/include/osmocom/vty/vty.h +++ b/include/osmocom/vty/vty.h @@ -155,6 +155,8 @@ int vty_config_unlock (struct vty *); int vty_shell (struct vty *); int vty_shell_serv (struct vty *); void vty_hello (struct vty *); +void *vty_current_index(struct vty *); +int vty_current_node(struct vty *vty); extern void *tall_vty_ctx; #endif -- cgit v1.2.3