#ifndef _INCLUDE_SUBLANG_H_
#define _INCLUDE_SUBLANG_H_

#include <dlfcn.h>

int donotexec;

typedef struct {
	void *module;
	char *lang;
	char *file;
	bool (*init)(void);
	char *(*get_path_from_env)(void);
	void (*show_config)(void);
	void (*print_begin)(char*);
	void (*print_end)(char*);
	void (*print_end_nl)(char*);
	void (*code_begin)(char*);
	void (*code_end)(char*);
	bool (*codevar)(char*,char*);
	void (*exec)(char*, char*, char*);
	void (*cache_exec)(char*, char*);
} sublang_t;

extern sublang_t *sublang;

#endif
