summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2018-03-26 11:44:52 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2018-03-26 11:44:53 -0500
commita4a5b8d562b0e0f10024f7dcbfaf2cb740e81d15 (patch)
tree0002aca09d553455462b8a14d185fe12198ae594
parent625d53a1296f4b1d12ed9160f9f7ff2503e389c0 (diff)
parent411915af289d283ee858a1db94a46b3df64d0b25 (diff)
Merge "loader: Reserve space for additional pointers in ast_module_info."
-rw-r--r--include/asterisk/module.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h
index faa4f7f67..08b4c4317 100644
--- a/include/asterisk/module.h
+++ b/include/asterisk/module.h
@@ -376,6 +376,13 @@ struct ast_module_info {
*/
const char *enhances;
+ /*! These reserved fields should be NULL, they exist to allow addition to this
+ * structure in a non-breaking way. */
+ void *reserved1;
+ void *reserved2;
+ void *reserved3;
+ void *reserved4;
+
/*! The support level for the given module */
enum ast_module_support_level support_level;
};
@@ -448,6 +455,10 @@ void __ast_module_unref(struct ast_module *mod, const char *file, int line, cons
NULL, \
NULL, \
NULL, \
+ NULL, \
+ NULL, \
+ NULL, \
+ NULL, \
support_level, \
}; \
static void __attribute__((constructor)) __reg_module(void) \