#include <iostream>
#include <string>
#include <cstdlib>
#include <vector>
#include <map>
#include <cassert>
#include "npapi.h"
#include "npruntime.h"
#include "pluginbase.h"
#include "npfunctions.h"
#include "dejagnu.h"
#include <regex.h>
#include "external.h"
Functions | |
int | main (int argc, char *argv[]) |
void * | NPN_MemAlloc (uint32_t size) |
void | NPN_MemFree (void *ptr) |
NPIdentifier | NPN_GetStringIdentifier (const NPUTF8 *name) |
nsPluginInstanceBase * | NS_NewPluginInstance (nsPluginCreateData *aCreateDataStruct) |
NPError | NS_PluginGetValue (NPPVariable aVariable, void *aValue) |
Retrieve values from the plugin for the Browser. | |
NPError | NS_PluginInitialize () |
void | NS_PluginShutdown () |
char * | NPP_GetMIMEDescription (void) |
void | NS_DestroyPluginInstance (nsPluginInstanceBase *aPlugin) |
bool | NPN_SetProperty (NPP npp, NPObject *obj, NPIdentifier name, const NPVariant *value) |
bool | NPN_GetProperty (NPP npp, NPObject *obj, NPIdentifier name, const NPVariant *value) |
bool | NPN_HasProperty (NPP npp, NPObject *obj, NPIdentifier name, const NPVariant *value) |
void | NPN_ReleaseVariantValue (NPVariant *variant) |
NPObject * | NPN_RetainObject (NPObject *obj) |
void | NPN_ReleaseObject (NPObject *npobj) |
Variables | |
TestState | runtest |
std::map< NPIdentifier, NPVariant * > | _properties |
std::map< NPIdentifier, NPInvokeFunctionPtr > | _methods |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
References gnash::ExternalInterface::convertNPVariant(), data, TestState::fail(), gnash::invoke(), gnash::ExternalInterface::makeArray(), gnash::ExternalInterface::makeInvoke(), gnash::ExternalInterface::makeNumber(), gnash::ExternalInterface::makeObject(), gnash::ExternalInterface::makeProperty(), gnash::ExternalInterface::makeString(), NPN_MemAlloc(), gnash::NPStringToString(), gnash::ExternalInterface::parseArguments(), gnash::ExternalInterface::parseInvoke(), gnash::ExternalInterface::parseProperties(), gnash::ExternalInterface::parseXML(), and TestState::pass().
bool NPN_GetProperty | ( | NPP | npp, | |
NPObject * | obj, | |||
NPIdentifier | name, | |||
const NPVariant * | value | |||
) |
References _properties.
NPIdentifier NPN_GetStringIdentifier | ( | const NPUTF8 * | name | ) |
bool NPN_HasProperty | ( | NPP | npp, | |
NPObject * | obj, | |||
NPIdentifier | name, | |||
const NPVariant * | value | |||
) |
References _properties.
void* NPN_MemAlloc | ( | uint32_t | size | ) |
References malloc().
void NPN_MemFree | ( | void * | ptr | ) |
References free().
void NPN_ReleaseObject | ( | NPObject * | npobj | ) |
References NPN_MemFree().
void NPN_ReleaseVariantValue | ( | NPVariant * | variant | ) |
References NPN_MemFree(), and NPN_ReleaseObject().
NPObject* NPN_RetainObject | ( | NPObject * | obj | ) |
bool NPN_SetProperty | ( | NPP | npp, | |
NPObject * | obj, | |||
NPIdentifier | name, | |||
const NPVariant * | value | |||
) |
References _properties.
char* NPP_GetMIMEDescription | ( | void | ) |
References gnash::key::x.
void NS_DestroyPluginInstance | ( | nsPluginInstanceBase * | aPlugin | ) |
nsPluginInstanceBase* NS_NewPluginInstance | ( | nsPluginCreateData * | aCreateDataStruct | ) |
NPError NS_PluginGetValue | ( | NPPVariable | aVariable, | |
void * | aValue | |||
) |
Retrieve values from the plugin for the Browser.
This C++ function is called by the browser to get certain information is needs from the plugin. This information is the plugin name, a description, etc...
NPError NS_PluginInitialize | ( | ) |
void NS_PluginShutdown | ( | ) |
std::map<NPIdentifier, NPInvokeFunctionPtr> _methods |
std::map<NPIdentifier, NPVariant *> _properties |