comparison include/freeDiameter/extension.h @ 1552:449b766ded50

extensions: fix dependency checking Fix extension dependency checking by unhiding "fd_ext_depends". (I accidentally broke this with the change on 2020-03-30 to hide symbols by default.)
author Luke Mewburn <luke@mewburn.net>
date Sat, 18 Jul 2020 18:38:11 +1000
parents a89913941dcf
children 566bb46cc73f
comparison
equal deleted inserted replaced
1551:2fe434590a8f 1552:449b766ded50
44 #include <freeDiameter/freeDiameter-host.h> 44 #include <freeDiameter/freeDiameter-host.h>
45 #include <freeDiameter/libfdcore.h> 45 #include <freeDiameter/libfdcore.h>
46 46
47 /* Macro that define the entry point of the extension */ 47 /* Macro that define the entry point of the extension */
48 #define EXTENSION_ENTRY(_name, _function, _depends...) \ 48 #define EXTENSION_ENTRY(_name, _function, _depends...) \
49 __attribute__((visibility("default"))) \
49 const char *fd_ext_depends[] = { _name , ## _depends , NULL }; \ 50 const char *fd_ext_depends[] = { _name , ## _depends , NULL }; \
50 static int extension_loaded = 0; \ 51 static int extension_loaded = 0; \
51 \ 52 \
52 __attribute__((visibility("default"))) \ 53 __attribute__((visibility("default"))) \
53 int fd_ext_init(int major, int minor, char * conffile) { \ 54 int fd_ext_init(int major, int minor, char * conffile) { \
"Welcome to our mercurial repository"