diff options
author | Corey Farrell <git@cfware.com> | 2018-02-08 14:23:35 -0500 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2018-03-20 20:44:23 -0400 |
commit | 411915af289d283ee858a1db94a46b3df64d0b25 (patch) | |
tree | 4932d7a90898b9cd35e37a871b286076187cace6 | |
parent | bfefde5b07579f8d075131bd1591ab7e7c0bcaf6 (diff) |
loader: Reserve space for additional pointers in ast_module_info.
This creates 4 reserved pointers in case we need additional dependency
management fields.
Change-Id: If991ec99b779df1b2dfbd38ce1a0cd79f9e01821
-rw-r--r-- | include/asterisk/module.h | 11 |
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) \ |