Skip to content
Snippets Groups Projects
Commit 5a74ed4f authored by Russell Bryant's avatar Russell Bryant
Browse files

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
parent d9e8e304
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,8 @@ all: _all
include ../Makefile.rules
res_snmp.so: res_snmp.o snmp/agent.o
clean::
rm -f snmp/*.o
......@@ -89,7 +89,7 @@ static int load_config(void)
return 0;
}
int load_module(void)
static int load_module(void *mod)
{
load_config();
......@@ -102,7 +102,7 @@ int load_module(void)
return 0;
}
int unload_module(void)
static int unload_module(void *mod)
{
ast_verbose(VERBOSE_PREFIX_1 "Unloading [Sub]Agent Module\n");
......@@ -110,7 +110,7 @@ int unload_module(void)
return pthread_join(thread, NULL);
}
int reload(void)
static int reload(void *mod)
{
ast_verbose(VERBOSE_PREFIX_1 "Reloading [Sub]Agent Module\n");
......@@ -127,17 +127,14 @@ int reload(void)
return 0;
}
int usecount(void)
{
return 0;
}
const char *key(void)
static const char *key(void)
{
return ASTERISK_GPL_KEY;
}
const char *description(void)
static const char *description(void)
{
return MODULE_DESCRIPTION;
}
STD_MOD(MOD_0, reload, NULL, NULL);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment