From 7cc74524ad3bddf0e7bf6893f775216e3a4fc4ed Mon Sep 17 00:00:00 2001 From: russell Date: Sat, 1 Jul 2006 15:13:56 +0000 Subject: 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: http://svn.digium.com/svn/asterisk/trunk@36524 f38db490-d61c-443f-a65b-d21fe96a405b --- res/Makefile | 2 ++ res/res_snmp.c | 17 +++++++---------- 2 files changed, 9 insertions(+), 10 deletions(-) (limited to 'res') diff --git a/res/Makefile b/res/Makefile index de6e90ac6..6ce2ae08f 100644 --- a/res/Makefile +++ b/res/Makefile @@ -24,6 +24,8 @@ all: _all include ../Makefile.rules +res_snmp.so: res_snmp.o snmp/agent.o + clean:: rm -f snmp/*.o diff --git a/res/res_snmp.c b/res/res_snmp.c index 3848e9330..6891a6303 100644 --- a/res/res_snmp.c +++ b/res/res_snmp.c @@ -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); -- cgit v1.2.3