1 2 3 4 5 6 7 8 9 10 11 12
#include <sys/types.h> /* Forwarded declaration */ struct module_ctx; struct config_file; typedef struct module_s { const char *name; int (*module_init_func)(struct config_file *cfg, struct module_ctx **ctx); } module_t; extern module_t modules[];