aboutsummaryrefslogtreecommitdiffstats
path: root/pbx/pbx_gtkconsole.c
diff options
context:
space:
mode:
Diffstat (limited to 'pbx/pbx_gtkconsole.c')
-rw-r--r--pbx/pbx_gtkconsole.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/pbx/pbx_gtkconsole.c b/pbx/pbx_gtkconsole.c
index 590913099..1bfadb7d3 100644
--- a/pbx/pbx_gtkconsole.c
+++ b/pbx/pbx_gtkconsole.c
@@ -78,7 +78,7 @@ static void update_statusbar(char *msg)
gtk_statusbar_push(GTK_STATUSBAR(statusbar), 1, msg);
}
-int unload_module(void)
+static int unload_module(void *mod)
{
if (inuse) {
/* Kill off the main thread */
@@ -200,7 +200,7 @@ static void remove_module(void)
}
}
}
-static void reload_module(void)
+static int reload_module(void *mod)
{
int res, x;
char *module;
@@ -475,7 +475,7 @@ static int show_console(void)
}
-int load_module(void)
+static int load_module(void *mod)
{
if (pipe(clipipe)) {
ast_log(LOG_WARNING, "Unable to create CLI pipe\n");
@@ -499,18 +499,14 @@ int load_module(void)
return 0;
}
-int usecount(void)
-{
- return inuse;
-}
-
-const char *description(void)
+static const char *description(void)
{
return dtext;
}
-const char *key(void)
+static const char *key(void)
{
return ASTERISK_GPL_KEY;
}
+STD_MOD(MOD_0, reload_module, NULL, NULL);