aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-23 16:41:18 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-23 16:41:18 +0000
commitf72b189007a4bba06c9f8df4283336a128c2da06 (patch)
treee9e5b39e2ff3c4cf257df305dd42294d087c48e2 /doc
parent158c02018c4f76ab2f38103f82ac9e4bdb514317 (diff)
Update modules.txt to new loader. (issue #9358 reported by eliel)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@59191 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'doc')
-rw-r--r--doc/modules.txt23
1 files changed, 11 insertions, 12 deletions
diff --git a/doc/modules.txt b/doc/modules.txt
index 4f6d4c67b..fbdf062e6 100644
--- a/doc/modules.txt
+++ b/doc/modules.txt
@@ -1,12 +1,14 @@
-All modules must have at least the following functions:
+All modules must have at least the following:
-int load_module():
+static int load_module():
- Do what you need to do when you get started. This function
-returns 0 on success and non-zero on failure (it is not considered loaded
-if it fails.
+ Do what you need to do when you get started. This function can return
+AST_MODULE_LOAD_FAILURE if a action fails and the module is prevented from loading,
+AST_MODULE_LOAD_DECLINE if the module can not load because of a non-critical failure
+(the configuration file was not found), or AST_MODULE_LOAD_SUCCESS if the module
+loaded fine.
-int unload_module():
+static int unload_module():
The module will soon be unloaded. If any channels are using your
features, you should give them a softhangup in an effort to keep the
@@ -17,10 +19,7 @@ some cases there may be no way to avoid a crash). This function should
return 0 on success and non-zero on failure (i.e. it cannot yet be
unloaded).
-char *description():
+AST_MODULE_INFO_STANDARD(keystr, desc);
- Return a description of the module's functionality.
-
-int usecnt():
-
- Return the number of channels, etc that are using you.
+keystr: Applicable license for module. In most cases this is ASTERISK_GPL_KEY.
+desc: Description of module.