diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-07-29 12:27:41 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-07-30 16:33:20 +0200 |
commit | 0c0c3a1ddeca6e6cb89f3d0cef2afdbdfd2e0c7d (patch) | |
tree | 5d223bb59177fca248fb0f15990815ea841ebab8 | |
parent | d1bc55c3b6e94e23562acaac60670005ba74532a (diff) |
hlr: Export + Declare global g_hlr symbol
Change-Id: I6f3e50f071fb2fbbe58413b4760dc2215055a444
-rw-r--r-- | src/hlr.c | 2 | ||||
-rw-r--r-- | src/hlr.h | 2 | ||||
-rw-r--r-- | src/hlr_vty.c | 4 | ||||
-rw-r--r-- | src/hlr_vty_subscr.c | 4 |
4 files changed, 3 insertions, 9 deletions
@@ -43,7 +43,7 @@ #include "luop.h" #include "hlr_vty.h" -static struct hlr *g_hlr; +struct hlr *g_hlr; static int quit = 0; /* Trigger 'Insert Subscriber Data' messages to all connected GSUP clients. @@ -39,6 +39,8 @@ struct hlr { char *gsup_bind_addr; }; +extern struct hlr *g_hlr; + struct hlr_subscriber; void osmo_hlr_subscriber_update_notify(struct hlr_subscriber *subscr); diff --git a/src/hlr_vty.c b/src/hlr_vty.c index ecc2f5c..7c20a0b 100644 --- a/src/hlr_vty.c +++ b/src/hlr_vty.c @@ -32,8 +32,6 @@ #include "hlr_vty_subscr.h" #include "gsup_server.h" -static struct hlr *g_hlr = NULL; - struct cmd_node hlr_node = { HLR_NODE, "%s(config-hlr)# ", @@ -154,8 +152,6 @@ int hlr_vty_is_config_node(struct vty *vty, int node) void hlr_vty_init(struct hlr *hlr, const struct log_info *cat) { - g_hlr = hlr; - logging_vty_add_cmds(cat); osmo_talloc_vty_add_cmds(); diff --git a/src/hlr_vty_subscr.c b/src/hlr_vty_subscr.c index 4092a8f..bbda6c5 100644 --- a/src/hlr_vty_subscr.c +++ b/src/hlr_vty_subscr.c @@ -33,8 +33,6 @@ struct vty; #define hexdump_buf(buf) osmo_hexdump_nospc((void*)buf, sizeof(buf)) -static struct hlr *g_hlr = NULL; - static void subscr_dump_full_vty(struct vty *vty, struct hlr_subscriber *subscr) { int rc; @@ -478,8 +476,6 @@ DEFUN(subscriber_aud3g, void hlr_vty_subscriber_init(struct hlr *hlr) { - g_hlr = hlr; - install_element_ve(&subscriber_show_cmd); install_element(ENABLE_NODE, &subscriber_create_cmd); install_element(ENABLE_NODE, &subscriber_delete_cmd); |