19 #ifndef GNASH_PLUGIN_EXTERNAL_H
20 #define GNASH_PLUGIN_EXTERNAL_H
29 #include <boost/shared_ptr.hpp>
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);
65 static boost::shared_ptr<invoke_t>
parseInvoke(
const std::string &xml);
67 static std::map<std::string, GnashNPVariant>
parseProperties(
const std::string &xml);
68 static std::vector<GnashNPVariant>
parseArguments(
const std::string &xml);
75 #endif // GNASH_PLUGIN_EXTERNAL_H