#ifndef MODGMT_H #define MODGMT_H #include #include #include #include "common.h" #include "filters.h" // Workaround exit() in GMT_Call_Module. May need because return mode of gmt api is not very reliable #if defined MODGMT_WORKAROUND_EXIT #define GMTMODE 0 #else #define GMTMODE 3 #endif // here we save header and footer of gmt-produced eps files extern std::string header,footer; // Parameters for working thread struct gmtworkthreadpars { void* api; const char* module; struct GMT_OPTION* opts; int fd; int ret; }; extern "C" { EXPORT int gmt_module_init(void* p); } int callgmtmodule(void *api, const char *module, struct GMT_OPTION *opts, std::string* res, gmt_filter filt=gmt_filter_default, void* filtpar=0); #endif