aboutsummaryrefslogtreecommitdiffstats
path: root/pbx/pbx_gtkconsole.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-30 23:11:07 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-30 23:11:07 +0000
commit8c9bc54ab58d16338838145018ed0acecde971ca (patch)
tree654948fed33c7b64f57a5acd9495490f7ad4bca0 /pbx/pbx_gtkconsole.c
parent3555ba6c4197c6becc6b83ceb65158e946fee494 (diff)
allow the gtk console to build and load
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38532 f38db490-d61c-443f-a65b-d21fe96a405b
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);