aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/module.h
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-08 22:01:19 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-08 22:01:19 +0000
commite4880150b1746ede7bd3c9e0f8fb88901a8c562b (patch)
treeb11d36d1b949f3ff1bc79f71f06c04c8f6c72f71 /include/asterisk/module.h
parentf1822bc2a6fdfea0a2fa629a0dc70336f22af185 (diff)
since the module API is changing, it's a good time to const-ify the description() and key() return values
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18552 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/module.h')
-rw-r--r--include/asterisk/module.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h
index 5e1b6e094..1f9d078bc 100644
--- a/include/asterisk/module.h
+++ b/include/asterisk/module.h
@@ -1,7 +1,7 @@
/*
* Asterisk -- An open source telephony toolkit.
*
- * Copyright (C) 1999 - 2005, Digium, Inc.
+ * Copyright (C) 1999 - 2006, Digium, Inc.
*
* Mark Spencer <markster@digium.com>
*
@@ -82,7 +82,7 @@ int usecount(void); /* How many channels provided by this module are in use? */
*
* \return a short description of your module
*/
-char *description(void); /* Description of this module */
+const char *description(void); /* Description of this module */
/*!
* \brief Returns the ASTERISK_GPL_KEY
@@ -99,7 +99,7 @@ char *description(void); /* Description of this module */
*
* \return ASTERISK_GPL_KEY
*/
-char *key(void); /* Return the below mentioned key, unmodified */
+const char *key(void); /* Return the below mentioned key, unmodified */
/*!
* \brief Reload stuff.
@@ -518,13 +518,12 @@ struct ast_registry {
};
struct module_symbols {
- int (*load_module)(void);
- int (*unload_module)(void);
- int (*usecount)(void);
- char *(*description)(void);
- char *(*key)(void);
- int (*reload)(void);
-
+ int (*load_module)(void);
+ int (*unload_module)(void);
+ int (*usecount)(void);
+ const char *(*description)(void);
+ const char *(*key)(void);
+ int (*reload)(void);
enum module_type {
MOD_0, /* old module style */
MOD_1, /* old style, but symbols here */