mirror of
https://github.com/asterisk/asterisk.git
synced 2026-05-25 00:14:28 +00:00
allow the gtk console to build and load
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user