aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp/IcedTeaPluginUtils.h
diff options
context:
space:
mode:
authorAdam Domurad <[email protected]>2012-06-04 12:07:33 -0400
committerAdam Domurad <[email protected]>2012-06-04 12:07:33 -0400
commit3a45053d393b828faa8a5db3febc1d28e6952ce7 (patch)
treea9a0373c01b55339606a279ad2b535ae7a5d7370 /plugin/icedteanp/IcedTeaPluginUtils.h
parentf96a26930b07f3f1fd0a8890230d816cb3c2fdc3 (diff)
Fix for PR518, adds utility function for wrapping NPString
in std::string.
Diffstat (limited to 'plugin/icedteanp/IcedTeaPluginUtils.h')
-rw-r--r--plugin/icedteanp/IcedTeaPluginUtils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/icedteanp/IcedTeaPluginUtils.h b/plugin/icedteanp/IcedTeaPluginUtils.h
index 9382a94..48250d1 100644
--- a/plugin/icedteanp/IcedTeaPluginUtils.h
+++ b/plugin/icedteanp/IcedTeaPluginUtils.h
@@ -209,6 +209,9 @@ class IcedTeaPluginUtilities
/* Converts the given integer to a string */
static void itoa(int i, std::string* result);
+ /* Copies a variant data type into a C++ string */
+ static std::string NPVariantAsString(NPVariant variant);
+
/* Frees the given vector and the strings that its contents point to */
static void freeStringPtrVector(std::vector<std::string*>* v);