mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
fix up res_snmp so it builds and loads correctly
- update to current loader - update to latest build system changes to ensure snmp/agent.o is built and linked git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36524 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -24,6 +24,8 @@ all: _all
|
|||||||
|
|
||||||
include ../Makefile.rules
|
include ../Makefile.rules
|
||||||
|
|
||||||
|
res_snmp.so: res_snmp.o snmp/agent.o
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
rm -f snmp/*.o
|
rm -f snmp/*.o
|
||||||
|
|
||||||
|
@@ -89,7 +89,7 @@ static int load_config(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int load_module(void)
|
static int load_module(void *mod)
|
||||||
{
|
{
|
||||||
load_config();
|
load_config();
|
||||||
|
|
||||||
@@ -102,7 +102,7 @@ int load_module(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int unload_module(void)
|
static int unload_module(void *mod)
|
||||||
{
|
{
|
||||||
ast_verbose(VERBOSE_PREFIX_1 "Unloading [Sub]Agent Module\n");
|
ast_verbose(VERBOSE_PREFIX_1 "Unloading [Sub]Agent Module\n");
|
||||||
|
|
||||||
@@ -110,7 +110,7 @@ int unload_module(void)
|
|||||||
return pthread_join(thread, NULL);
|
return pthread_join(thread, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int reload(void)
|
static int reload(void *mod)
|
||||||
{
|
{
|
||||||
ast_verbose(VERBOSE_PREFIX_1 "Reloading [Sub]Agent Module\n");
|
ast_verbose(VERBOSE_PREFIX_1 "Reloading [Sub]Agent Module\n");
|
||||||
|
|
||||||
@@ -127,17 +127,14 @@ int reload(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int usecount(void)
|
static const char *key(void)
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *key(void)
|
|
||||||
{
|
{
|
||||||
return ASTERISK_GPL_KEY;
|
return ASTERISK_GPL_KEY;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *description(void)
|
static const char *description(void)
|
||||||
{
|
{
|
||||||
return MODULE_DESCRIPTION;
|
return MODULE_DESCRIPTION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STD_MOD(MOD_0, reload, NULL, NULL);
|
||||||
|
Reference in New Issue
Block a user