|
Gnash
0.8.11dev
|
#include <iostream>#include <string>#include <cstdlib>#include <vector>#include <map>#include <cassert>#include "npapi.h"#include "npruntime.h"#include "npfunctions.h"#include "plugin.h"#include "pluginbase.h"#include <regex.h>#include "external.h"#include "dsodefs.h"#include <sys/param.h>#include <ltdl.h>Typedefs | |
| typedef NPError | NP_InitializePtr(NPNetscapeFuncs *aNPNFuncs, NPPluginFuncs *aNPPFuncs) |
Functions | |
| NPError | NS_PluginGetValue (NPPVariable aVariable, void *aValue) |
| Retrieve values from the plugin for the Browser. More... | |
| NPNetscapeFuncs * | populateNPFuncs (NPNetscapeFuncs *aNPNFuncs) |
| int | main (int argc, char *argv[]) |
| void * | NPN_MemAlloc (uint32_t size) |
| void | NPN_MemFree (void *ptr) |
| uint32_t | NPN_MemFlush (uint32_t size) |
| NPUTF8 * | NPN_UTF8FromIdentifier (NPIdentifier identifier) |
| int32_t | NPN_IntFromIdentifier (NPIdentifier identifier) |
| NPIdentifier | NPN_GetStringIdentifier (const NPUTF8 *name) |
| NPError | NPP_GetValue (NPP instance, NPPVariable aVariable, void *aValue) |
| NPError | NPN_GetURLNotify (NPP instance, const char *url, const char *target, void *notifyData) |
| NPError | NPN_PostURLNotify (NPP instance, const char *url, const char *target, uint32_t len, const char *buf, NPBool file, void *notifyData) |
| bool | NPN_Invoke (NPP npp, NPObject *npobj, NPIdentifier methodName, const NPVariant *args, uint32_t argCount, NPVariant *result) |
| bool | NPN_InvokeDefault (NPP npp, NPObject *npobj, const NPVariant *args, uint32_t argCount, NPVariant *result) |
| bool | NPN_Evaluate (NPP npp, NPObject *npobj, NPString *script, NPVariant *result) |
| bool | NPN_GetProperty (NPP npp, NPObject *npobj, NPIdentifier propertyName, NPVariant *result) |
| bool | NPN_HasProperty (NPP npp, NPObject *npobj, NPIdentifier propertyName) |
| bool | NPN_HasMethod (NPP npp, NPObject *npobj, NPIdentifier methodName) |
| NPError | NPN_GetValue (NPP instance, NPNVariable aVariable, void *aValue) |
| NPError | NPN_SetValue (NPP instance, NPPVariable aVariable, void *aValue) |
| void | NPN_InvalidateRect (NPP instance, NPRect *invalidRect) |
| void | NPN_InvalidateRegion (NPP instance, NPRegion invalidRegion) |
| void | NPN_ReloadPlugins (NPBool reloadPages) |
| NPError | NPN_GetURL (NPP instance, const char *url, const char *target) |
| NPError NP_LOADDS | NPN_PostURL (NPP instance, const char *url, const char *target, uint32_t len, const char *buf, NPBool file) |
| NPError | NPN_RequestRead (NPStream *stream, NPByteRange *rangeList) |
| NPError | NPN_NewStream (NPP instance, NPMIMEType type, const char *target, NPStream **stream) |
| void | NPN_Status (NPP instance, const char *message) |
| const char * | NPN_UserAgent (NPP instance) |
| int32_t | NPN_Write (NPP instance, NPStream *stream, int32_t len, void *buffer) |
| NPError | NPN_DestroyStream (NPP instance, NPStream *stream, NPReason reason) |
| 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_RemoveProperty (NPP npp, NPObject *npobj, NPIdentifier propertyName) |
| bool | NPN_HasProperty (NPP npp, NPObject *obj, NPIdentifier name, const NPVariant *value) |
| void | NPN_SetException (NPObject *npobj, const NPUTF8 *message) |
| void | NPN_PluginThreadAsyncCall (NPP plugin, void(*func)(void *), void *userData) |
| bool | NPN_Enumerate (NPP npp, NPObject *npobj, NPIdentifier **identifier, uint32_t *count) |
| bool | NPN_Construct (NPP npp, NPObject *npobj, const NPVariant *args, uint32_t argCount, NPVariant *result) |
| void | NPN_ReleaseVariantValue (NPVariant *variant) |
| NPObject * | NPN_CreateObject (NPP npp, NPClass *aClass) |
| void | NPN_GetStringIdentifiers (const NPUTF8 **names, int32_t nameCount, NPIdentifier *identifiers) |
| NPIdentifier | NPN_GetIntIdentifier (int32_t intid) |
| bool | NPN_IdentifierIsString (NPIdentifier identifier) |
| NPObject * | NPN_RetainObject (NPObject *obj) |
| void | NPN_ReleaseObject (NPObject *npobj) |
Variables | |
| std::map< NPIdentifier, NPVariant * > | _properties |
| std::map< NPIdentifier, NPInvokeFunctionPtr > | _methods |
| typedef NPError NP_InitializePtr(NPNetscapeFuncs *aNPNFuncs, NPPluginFuncs *aNPPFuncs) |
| int main | ( | int argc | , |
| char * | argv[] | ||
| ) |
References NPN_GetValue(), NPP_GetValue(), and populateNPFuncs().
| bool NPN_Construct | ( | NPP | npp, |
| NPObject * | npobj, | ||
| const NPVariant * | args, | ||
| uint32_t | argCount, | ||
| NPVariant * | result | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| NPObject* NPN_CreateObject | ( | NPP | npp, |
| NPClass * | aClass | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| NPError NPN_DestroyStream | ( | NPP | instance, |
| NPStream * | stream, | ||
| NPReason | reason | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| bool NPN_Enumerate | ( | NPP | npp, |
| NPObject * | npobj, | ||
| NPIdentifier ** | identifier, | ||
| uint32_t * | count | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| bool NPN_Evaluate | ( | NPP | npp, |
| NPObject * | npobj, | ||
| NPString * | script, | ||
| NPVariant * | result | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| NPIdentifier NPN_GetIntIdentifier | ( | int32_t | intid | ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| bool NPN_GetProperty | ( | NPP | npp, |
| NPObject * | npobj, | ||
| NPIdentifier | propertyName, | ||
| NPVariant * | result | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| bool NPN_GetProperty | ( | NPP | npp, |
| NPObject * | obj, | ||
| NPIdentifier | name, | ||
| const NPVariant * | value | ||
| ) |
References _properties, and name.
| NPIdentifier NPN_GetStringIdentifier | ( | const NPUTF8 * | name | ) |
References __PRETTY_FUNCTION__.
Referenced by gnash::GnashPluginScriptObject::AddProperty(), gnash::plugin::ExternalInterface::parseXML(), populateNPFuncs(), and gnash::remove_handler().
| void NPN_GetStringIdentifiers | ( | const NPUTF8 ** | names, |
| int32_t | nameCount, | ||
| NPIdentifier * | identifiers | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| NPError NPN_GetURL | ( | NPP | instance, |
| const char * | url, | ||
| const char * | target | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs(), and gnash::remove_handler().
| NPError NPN_GetURLNotify | ( | NPP | instance, |
| const char * | url, | ||
| const char * | target, | ||
| void * | notifyData | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| NPError NPN_GetValue | ( | NPP | instance, |
| NPNVariable | aVariable, | ||
| void * | aValue | ||
| ) |
References NPNFuncs, and NPPFuncs.
Referenced by main(), NS_PluginInitialize(), gnash::plugin::ExternalInterface::parseXML(), populateNPFuncs(), and gnash::remove_handler().
| bool NPN_HasMethod | ( | NPP | npp, |
| NPObject * | npobj, | ||
| NPIdentifier | methodName | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| bool NPN_HasProperty | ( | NPP | npp, |
| NPObject * | npobj, | ||
| NPIdentifier | propertyName | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| bool NPN_HasProperty | ( | NPP | npp, |
| NPObject * | obj, | ||
| NPIdentifier | name, | ||
| const NPVariant * | value | ||
| ) |
References _properties.
| bool NPN_IdentifierIsString | ( | NPIdentifier | identifier | ) |
References __PRETTY_FUNCTION__.
Referenced by gnash::GnashPluginScriptObject::AddMethod(), gnash::GnashPluginScriptObject::GetProperty(), gnash::GnashPluginScriptObject::HasMethod(), gnash::GnashPluginScriptObject::HasProperty(), gnash::GnashPluginScriptObject::Invoke(), gnash::GnashPluginScriptObject::InvokeDefault(), gnash::GnashPluginScriptObject::marshalHasMethod(), populateNPFuncs(), and gnash::remoteCallback().
| int32_t NPN_IntFromIdentifier | ( | NPIdentifier | identifier | ) |
References __PRETTY_FUNCTION__.
Referenced by gnash::GnashPluginScriptObject::AddMethod(), gnash::GnashPluginScriptObject::GetProperty(), gnash::GnashPluginScriptObject::HasMethod(), gnash::GnashPluginScriptObject::HasProperty(), gnash::GnashPluginScriptObject::Invoke(), gnash::GnashPluginScriptObject::InvokeDefault(), gnash::GnashPluginScriptObject::marshalHasMethod(), populateNPFuncs(), and gnash::remoteCallback().
| void NPN_InvalidateRect | ( | NPP | instance, |
| NPRect * | invalidRect | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| void NPN_InvalidateRegion | ( | NPP | instance, |
| NPRegion | invalidRegion | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| bool NPN_Invoke | ( | NPP | npp, |
| NPObject * | npobj, | ||
| NPIdentifier | methodName, | ||
| const NPVariant * | args, | ||
| uint32_t | argCount, | ||
| NPVariant * | result | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by gnash::plugin::ExternalInterface::parseXML(), populateNPFuncs(), and gnash::remove_handler().
| bool NPN_InvokeDefault | ( | NPP | npp, |
| NPObject * | npobj, | ||
| const NPVariant * | args, | ||
| uint32_t | argCount, | ||
| NPVariant * | result | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| void* NPN_MemAlloc | ( | uint32_t | size | ) |
Referenced by gnash::CopyVariantValue(), gnash::plugin::ExternalInterface::parseXML(), and populateNPFuncs().
| uint32_t NPN_MemFlush | ( | uint32_t | size | ) |
Referenced by populateNPFuncs().
| void NPN_MemFree | ( | void * | ptr | ) |
Referenced by NPN_ReleaseObject(), NPN_ReleaseVariantValue(), and populateNPFuncs().
| NPError NPN_NewStream | ( | NPP | instance, |
| NPMIMEType | type, | ||
| const char * | target, | ||
| NPStream ** | stream | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| void NPN_PluginThreadAsyncCall | ( | NPP | plugin, |
| void(*)(void *) | func, | ||
| void * | userData | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| NPError NP_LOADDS NPN_PostURL | ( | NPP | instance, |
| const char * | url, | ||
| const char * | target, | ||
| uint32_t | len, | ||
| const char * | buf, | ||
| NPBool | file | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs(), and gnash::remove_handler().
| NPError NPN_PostURLNotify | ( | NPP | instance, |
| const char * | url, | ||
| const char * | target, | ||
| uint32_t | len, | ||
| const char * | buf, | ||
| NPBool | file, | ||
| void * | notifyData | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| void NPN_ReleaseObject | ( | NPObject * | npobj | ) |
| void NPN_ReleaseVariantValue | ( | NPVariant * | variant | ) |
| void NPN_ReloadPlugins | ( | NPBool | reloadPages | ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| bool NPN_RemoveProperty | ( | NPP | npp, |
| NPObject * | npobj, | ||
| NPIdentifier | propertyName | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| NPError NPN_RequestRead | ( | NPStream * | stream, |
| NPByteRange * | rangeList | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| NPObject* NPN_RetainObject | ( | NPObject * | obj | ) |
Referenced by gnash::CopyVariantValue(), gnash::nsPluginInstance::GetValue(), and populateNPFuncs().
| void NPN_SetException | ( | NPObject * | npobj, |
| const NPUTF8 * | message | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| bool NPN_SetProperty | ( | NPP | npp, |
| NPObject * | obj, | ||
| NPIdentifier | name, | ||
| const NPVariant * | value | ||
| ) |
References _properties, and name.
Referenced by gnash::plugin::ExternalInterface::parseXML(), and populateNPFuncs().
| NPError NPN_SetValue | ( | NPP | instance, |
| NPPVariable | aVariable, | ||
| void * | aValue | ||
| ) |
References NPNFuncs, and NPPFuncs.
Referenced by populateNPFuncs().
| void NPN_Status | ( | NPP | instance, |
| const char * | message | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| const char* NPN_UserAgent | ( | NPP | instance | ) |
References __PRETTY_FUNCTION__.
Referenced by nsPluginInstance::getVersion(), and populateNPFuncs().
| NPUTF8* NPN_UTF8FromIdentifier | ( | NPIdentifier | identifier | ) |
References __PRETTY_FUNCTION__.
Referenced by gnash::GnashPluginScriptObject::AddMethod(), gnash::GnashPluginScriptObject::GetProperty(), gnash::GnashPluginScriptObject::HasMethod(), gnash::GnashPluginScriptObject::HasProperty(), gnash::GnashPluginScriptObject::Invoke(), gnash::GnashPluginScriptObject::InvokeDefault(), gnash::GnashPluginScriptObject::marshalHasMethod(), populateNPFuncs(), and gnash::remoteCallback().
| int32_t NPN_Write | ( | NPP | instance, |
| NPStream * | stream, | ||
| int32_t | len, | ||
| void * | buffer | ||
| ) |
References __PRETTY_FUNCTION__.
Referenced by populateNPFuncs().
| char* NPP_GetMIMEDescription | ( | void | ) |
References x.
| NPError NPP_GetValue | ( | NPP | instance, |
| NPPVariable | aVariable, | ||
| void * | aValue | ||
| ) |
| void NS_DestroyPluginInstance | ( | nsPluginInstanceBase * | aPlugin | ) |
References __PRETTY_FUNCTION__.
| 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...
References PLUGIN_NAME.
Referenced by gnash::nsPluginInstance::GetValue().
| void NS_PluginShutdown | ( | void | ) |
References __PRETTY_FUNCTION__.
| NPNetscapeFuncs* populateNPFuncs | ( | NPNetscapeFuncs * | aNPNFuncs | ) |
References NPN_Construct(), NPN_CreateObject(), NPN_DestroyStream(), NPN_Enumerate(), NPN_Evaluate(), NPN_GetIntIdentifier(), NPN_GetProperty(), NPN_GetStringIdentifier(), NPN_GetStringIdentifiers(), NPN_GetURL(), NPN_GetURLNotify(), NPN_GetValue(), NPN_HasMethod(), NPN_HasProperty(), NPN_IdentifierIsString(), NPN_IntFromIdentifier(), NPN_InvalidateRect(), NPN_InvalidateRegion(), NPN_Invoke(), NPN_InvokeDefault(), NPN_MemAlloc(), NPN_MemFlush(), NPN_MemFree(), NPN_NewStream(), NPN_PluginThreadAsyncCall(), NPN_PostURL(), NPN_PostURLNotify(), NPN_ReleaseObject(), NPN_ReleaseVariantValue(), NPN_ReloadPlugins(), NPN_RemoveProperty(), NPN_RequestRead(), NPN_RetainObject(), NPN_SetException(), NPN_SetProperty(), NPN_SetValue(), NPN_Status(), NPN_UserAgent(), NPN_UTF8FromIdentifier(), and NPN_Write().
Referenced by main().
| std::map<NPIdentifier, NPInvokeFunctionPtr> _methods |
Referenced by gnash::abc::AbcBlock::methodPoolAt().
| std::map<NPIdentifier, NPVariant *> _properties |
Referenced by NPN_GetProperty(), NPN_HasProperty(), and NPN_SetProperty().
1.8.12