|
@@ -19,6 +19,7 @@
|
|
|
#include "v8.h"
|
|
|
#include "jexcept.hpp"
|
|
|
#include "jthread.hpp"
|
|
|
+#include "hqlplugins.hpp"
|
|
|
#include "deftype.hpp"
|
|
|
#include "eclrtl.hpp"
|
|
|
#include "eclrtl_imp.hpp"
|
|
@@ -29,6 +30,30 @@
|
|
|
#define EXPORT
|
|
|
#endif
|
|
|
|
|
|
+static const char * compatibleVersions[] = {
|
|
|
+ "V8 JavaScript Embed Helper 1.0.0",
|
|
|
+ NULL };
|
|
|
+
|
|
|
+static const char *version = "V8 JavaScript Embed Helper 1.0.0";
|
|
|
+
|
|
|
+extern "C" EXPORT bool getECLPluginDefinition(ECLPluginDefinitionBlock *pb)
|
|
|
+{
|
|
|
+ if (pb->size == sizeof(ECLPluginDefinitionBlockEx))
|
|
|
+ {
|
|
|
+ ECLPluginDefinitionBlockEx * pbx = (ECLPluginDefinitionBlockEx *) pb;
|
|
|
+ pbx->compatibleVersions = compatibleVersions;
|
|
|
+ }
|
|
|
+ else if (pb->size != sizeof(ECLPluginDefinitionBlock))
|
|
|
+ return false;
|
|
|
+ pb->magicVersion = PLUGIN_VERSION;
|
|
|
+ pb->version = version;
|
|
|
+ pb->moduleName = "javascript";
|
|
|
+ pb->ECL = NULL;
|
|
|
+ pb->flags = PLUGIN_MULTIPLE_VERSIONS;
|
|
|
+ pb->description = "V8 JavaScript Embed Helper";
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
namespace javascriptLanguageHelper {
|
|
|
|
|
|
class V8JavascriptEmbedFunctionContext : public CInterfaceOf<IEmbedFunctionContext>
|