scriptproc.h
Last updated: 17-Sep-2025
Go to the documentation of this file.
1Â #ifndef SCRIPTPROC_H_20141114 2Â #define SCRIPTPROC_H_20141114 3Â 6Â #if defined _WIN32 && defined VFI_GUIPRT_SHARED_EXPORT 7Â # define DllSpec __declspec(dllexport) 8Â #elif defined __GNUC__ && defined VFI_GUIPRT_SHARED_EXPORT 9Â # define DllSpec __attribute__((visibility ("default"))) 10Â #else 11Â # define DllSpec 12Â #endif 13Â 14Â #include <string> 15Â #include <map> 16Â 17Â namespace vfihtml { 18Â 19Â class ExtContext; 20Â 30Â typedef bool (*ScriptProcessor)(void *data, 31Â const std::string &script, 32Â std::map<std::string,std::string> &value, 33Â std::string &out, 34Â std::string &err, 35Â std::string &exitcode); 36Â 47Â typedef bool (*ScriptProcessorExt)(void *data, 48Â const std::string &script, 49Â std::map<std::string,std::string> &value, 50Â std::string &out, 51Â std::string &err, 52Â std::string &exitcode, 53Â ExtContext *context); 54Â 60Â DllSpec void htmlSetScriptProcessor(const char *name, ScriptProcessor proc, void *data); 61Â 67Â DllSpec void htmlSetScriptProcessor(const char *name, ScriptProcessorExt proc, void *data=0); 68Â 69Â } // namespace vfihtml 70Â 71Â #undef DllSpec 72Â 73Â #endif
Rate this article: