[Asterisk-code-review] loader: Reserve space for additional pointers in ast module ... (asterisk[master])

Corey Farrell asteriskteam at digium.com
Tue Mar 20 20:11:20 CDT 2018


Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/8621


Change subject: loader: Reserve space for additional pointers in ast_module_info.
......................................................................

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
---
M include/asterisk/module.h
1 file changed, 11 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/21/8621/1

diff --git a/include/asterisk/module.h b/include/asterisk/module.h
index faa4f7f..08b4c43 100644
--- a/include/asterisk/module.h
+++ b/include/asterisk/module.h
@@ -376,6 +376,13 @@
 	 */
 	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 @@
 		NULL,                                                          \
 		NULL,                                                          \
 		NULL,                                                          \
+		NULL,                                                          \
+		NULL,                                                          \
+		NULL,                                                          \
+		NULL,                                                          \
 		support_level,                                                 \
 	};                                                                 \
 	static void  __attribute__((constructor)) __reg_module(void)       \

-- 
To view, visit https://gerrit.asterisk.org/8621
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: If991ec99b779df1b2dfbd38ce1a0cd79f9e01821
Gerrit-Change-Number: 8621
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180320/c1b5c695/attachment.html>


More information about the asterisk-code-review mailing list