#ifndef _INCLUDE_MODULES_H_
#define _INCLUDE_MODULES_H_

#include "main.h"

#if DLOPEN

typedef enum {
	MOD_NONE=0,
	MOD_LOGS,
	MOD_EXEC,
	MOD_ENV,
	MOD_REQ,
	MOD_LASTONE
} module_t;

typedef struct{
	void *_dlopen;
	bool (*_init)(),
	     (*_exec)();
	char *filename,
	     *name;
	char **opts;
	int  nopts;
	module_t type;
} module_s;

#endif

#endif
