diff include/freeDiameter/extension.h @ 732:4a0b61061a6d

Added simple mechanism to declare dependencies between extensions
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 25 Feb 2011 15:46:40 +0900
parents f198d16fa7f4
children 4a9f08d6b6ba
line wrap: on
line diff
--- a/include/freeDiameter/extension.h	Fri Feb 25 14:33:37 2011 +0900
+++ b/include/freeDiameter/extension.h	Fri Feb 25 15:46:40 2011 +0900
@@ -41,7 +41,8 @@
 #include <freeDiameter/libfdcore.h>
 
 /* Macro that define the entry point of the extension */
-#define EXTENSION_ENTRY(_name, _function)						\
+#define EXTENSION_ENTRY(_name, _function, _depends...)					\
+const char *fd_ext_depends[] = { _name , ## _depends , NULL };				\
 static int extension_loaded = 0;							\
 int fd_ext_init(int major, int minor, char * conffile) {				\
 	if ((major != FD_PROJECT_VERSION_MAJOR)						\
"Welcome to our mercurial repository"