aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_vpb.cc
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-16 21:09:46 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-16 21:09:46 +0000
commitdbec3d56c146801fad339a1d46a388865b18ffb4 (patch)
tree8fda811f62cb6ffb99847befb7b74b1519ea95ba /channels/chan_vpb.cc
parent0fb9c73a989207650aa3ba603824e4593809611b (diff)
Don't reload a configuration file if nothing has changed.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79747 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_vpb.cc')
-rw-r--r--channels/chan_vpb.cc28
1 files changed, 5 insertions, 23 deletions
diff --git a/channels/chan_vpb.cc b/channels/chan_vpb.cc
index bcc3f6834..852872714 100644
--- a/channels/chan_vpb.cc
+++ b/channels/chan_vpb.cc
@@ -2636,7 +2636,7 @@ static float parse_gain_value(char *gain_type, char *value)
}
-int unload_module()
+static int unload_module()
{
struct vpb_pvt *p;
/* First, take us out of the channel loop */
@@ -2701,10 +2701,11 @@ int unload_module()
return 0;
}
-int load_module()
+static int load_module()
{
struct ast_config *cfg;
struct ast_variable *v;
+ struct ast_flags config_flags = { 0 };
struct vpb_pvt *tmp;
int board = 0, group = 0;
ast_group_t callgroup = 0;
@@ -2721,7 +2722,7 @@ int load_module()
int bal3 = -1;
char * callerid = NULL;
- cfg = ast_config_load(config);
+ cfg = ast_config_load(config, config_flags);
/* We *must* have a config file otherwise stop immediately */
if (!cfg) {
@@ -2897,29 +2898,10 @@ int load_module()
return error;
}
-int usecount()
-{
- return usecnt;
-}
-
-const char *description()
-{
- return (char *) desc;
-}
-
-const char *key()
-{
- return ASTERISK_GPL_KEY;
-}
-
/**/
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
/**/
-AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "VoiceTronix API driver",
- .load = load_module,
- .unload = unload_module,
- .reload = reload,
- );
+AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "VoiceTronix API driver");