Go to the documentation of this file.
21 #ifndef GNASH_EXTERNALINTERFACE_H
22 #define GNASH_EXTERNALINTERFACE_H
47 std::vector<as_value>
args;
53 return ei._toXML(obj);
56 static as_value parseXML(
const std::string &xml);
57 static std::vector<as_value> parseArguments(
const std::string &xml);
60 static std::unique_ptr<invoke_t> parseInvoke(
const std::string &str);
62 DSOEXPORT static std::unique_ptr<invoke_t> ExternalEventCheck(
int fd);
66 DSOEXPORT static std::string makeInvoke (
const std::string &method,
67 const std::vector<as_value> &args);
70 return "<string>" + str +
"</string>";
73 DSOEXPORT static size_t writeBrowser(
int fd,
const std::string &xml);
74 DSOEXPORT static std::string readBrowser(
int fd);
82 std::set<as_object*> _visited;
static DSOEXPORT size_t writeBrowser(int fd, const std::string &xml)
Definition: ExternalInterface.cpp:326
std::vector< as_value > args
Definition: ExternalInterface.h:47
std::string name
Definition: LocalConnection_as.cpp:149
The base class for all ActionScript objects.
Definition: as_object.h:162
void log_debug(StringType msg, Args... args)
Definition: log.h:301
static DSOEXPORT std::string makeInvoke(const std::string &method, const std::vector< as_value > &args)
Definition: ExternalInterface.cpp:302
@ i
Definition: GnashKey.h:155
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
Definition: ExternalInterface.h:43
void set_double(double val)
Set to a primitive number.
Definition: as_value.cpp:739
@ start
Definition: klash_part.cpp:330
static std::string toXML(const as_value &obj)
Convert an AS object to an XML string.
Definition: ExternalInterface.h:51
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
void log_error(StringType msg, Args... args)
Definition: log.h:283
as_value getMember(as_object &o, const ObjectURI &uri)
Get a member of an object using AS lookup rules.
Definition: as_object.h:756
void set_string(const std::string &str)
Set to a primitive string.
Definition: as_value.cpp:732
static std::vector< as_value > parseArguments(const std::string &xml)
Definition: ExternalInterface.cpp:270
void write(SimpleBuffer &buf, const std::string &str)
Write a string to an AMF buffer.
Definition: AMF.cpp:161
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
void set_undefined()
Set to undefined.
Definition: as_value.cpp:519
Definition: ExternalInterface.h:44
static std::string makeString(const std::string &str)
Definition: ExternalInterface.h:69
ActionScript value type.
Definition: as_value.h:95
static std::unique_ptr< invoke_t > parseInvoke(const std::string &str)
Definition: ExternalInterface.cpp:179
void set_bool(bool val)
Set to a primitive boolean.
Definition: as_value.cpp:746
std::string type
Definition: ExternalInterface.h:46
pixel_iterator< T > end(GnashImage &im)
Definition: ImageIterators.h:198
#define DSOEXPORT
Definition: dsodefs.h:55
static as_value parseXML(const std::string &xml)
Definition: ExternalInterface.cpp:226
std::string name
Definition: ExternalInterface.h:45
static DSOEXPORT std::unique_ptr< invoke_t > ExternalEventCheck(int fd)
Definition: ExternalInterface.cpp:142
void set_null()
Set this value to the NULL value.
Definition: as_value.cpp:526
#define DSOLOCAL
Definition: dsodefs.h:56
@ u
Definition: GnashKey.h:167
SimpleBuffer data
Definition: LocalConnection_as.cpp:151
@ e
Definition: GnashKey.h:151
static DSOEXPORT std::string readBrowser(int fd)
Definition: ExternalInterface.cpp:336