Go to the documentation of this file.
19 #ifndef GNASH_PLUGIN_EXTERNAL_H
20 #define GNASH_PLUGIN_EXTERNAL_H
32 #include "npruntime.h"
45 std::vector<GnashNPVariant>
args;
49 static std::string
makeInvoke (
const std::string &method, std::vector<std::string> args);
54 static std::string
makeString (
const std::string &str);
55 static std::string
makeProperty (
const std::string &str,
const std::string &
data);
56 static std::string
makeProperty (
const std::string &str,
double num);
57 static std::string
makeProperty (
const std::string &str,
int num);
60 static std::string
makeNumber (
unsigned int num);
61 static std::string
makeArray (std::vector<std::string> &args);
62 static std::string
makeObject (std::map<std::string, std::string> &args);
75 #endif // GNASH_PLUGIN_EXTERNAL_H
std::string NPStringToString(const NPString &str)
Construct a std::string from an NPString.
Definition: GnashNPVariant.h:87
Definition: external.h:41
static std::string makeObject(std::map< std::string, std::string > &args)
Definition: external.cpp:181
std::string name
Definition: LocalConnection_as.cpp:149
std::vector< GnashNPVariant > args
Definition: external.h:45
bool NPN_SetProperty(NPP npp, NPObject *obj, NPIdentifier name, const NPVariant *value)
Definition: gshell.cpp:406
void * NPN_MemAlloc(uint32_t size)
Definition: gshell.cpp:188
Definition: external.h:42
std::string name
Definition: external.h:43
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
void NPN_ReleaseObject(NPObject *npobj)
Definition: gshell.cpp:519
NPError NPN_GetValue(NPP instance, NPNVariable aVariable, void *aValue)
Definition: gshell.cpp:293
static std::vector< GnashNPVariant > parseArguments(GnashPluginScriptObject *scriptobj, const std::string &xml)
Definition: external.cpp:430
@ start
Definition: klash_part.cpp:330
NPP nppinstance
Plugin instance object.
Definition: pluginScriptObject.h:143
static std::string makeNull()
Definition: external.cpp:66
static std::string makeNumber(double num)
Definition: external.cpp:133
static std::string makeProperty(const std::string &str, const std::string &data)
Definition: external.cpp:123
const NPVariant & get() const
Obtain a reference to the contained NPVariant.
Definition: GnashNPVariant.h:162
bool NPN_Invoke(NPP npp, NPObject *npobj, NPIdentifier methodName, const NPVariant *args, uint32_t argCount, NPVariant *result)
Definition: gshell.cpp:253
DSOEXPORT as_value invoke(const as_value &method, const as_environment &env, as_object *this_ptr, fn_call::Args &args, as_object *super=nullptr, const movie_definition *callerDef=nullptr)
Call an as_value on an as_object.
Definition: Global_as.h:166
NPIdentifier NPN_GetStringIdentifier(const NPUTF8 *name)
Definition: gshell.cpp:222
static std::string makeArray(std::vector< std::string > &args)
Definition: external.cpp:163
@ length
Definition: klash_part.cpp:329
This class holds ownership of (a copy of) an NPVariant.
Definition: GnashNPVariant.h:116
static std::map< std::string, GnashNPVariant > parseProperties(GnashPluginScriptObject *scriptobj, const std::string &xml)
Definition: external.cpp:402
static std::string convertNPVariant(const NPVariant *npv)
Definition: external.cpp:369
static std::string makeTrue()
Definition: external.cpp:76
static GnashNPVariant parseXML(GnashPluginScriptObject *scriptobj, const std::string &xml)
Definition: external.cpp:266
std::string type
Definition: external.h:44
static std::shared_ptr< invoke_t > parseInvoke(GnashPluginScriptObject *scriptobj, const std::string &xml)
Definition: external.cpp:203
static std::string makeFalse()
Definition: external.cpp:86
pixel_iterator< T > end(GnashImage &im)
Definition: ImageIterators.h:198
static std::string makeString(const std::string &str)
Definition: external.cpp:96
Definition: pluginScriptObject.h:58
SimpleBuffer data
Definition: LocalConnection_as.cpp:151
void NPN_ReleaseVariantValue(NPVariant *variant)
Definition: gshell.cpp:464
static std::string makeInvoke(const std::string &method, std::vector< std::string > args)
Definition: external.cpp:43