Gnash  0.8.10
Functions | Variables
test.cpp File Reference
#include <iostream>
#include <string>
#include <cstdlib>
#include <vector>
#include <map>
#include <cassert>
#include <memory>
#include "npapi.h"
#include "npruntime.h"
#include "npfunctions.h"
#include "pluginbase.h"
#include "dejagnu.h"
#include "../../testsuite/check.h"
#include <regex.h>
#include "external.h"
#include "GnashNPVariant.h"

Functions

int main (int, char **)
void * NPN_MemAlloc (uint32_t size)
void NPN_MemFree (void *ptr)
NPIdentifier NPN_GetStringIdentifier (const NPUTF8 *)
nsPluginInstanceBase * NS_NewPluginInstance (nsPluginCreateData *)
NPError NS_PluginGetValue (NPPVariable, void *)
 Retrieve values from the plugin for the Browser.
NPError NS_PluginInitialize ()
void NS_PluginShutdown ()
char * NPP_GetMIMEDescription (void)
void NS_DestroyPluginInstance (nsPluginInstanceBase *)
bool NPN_SetProperty (NPP, NPObject *, NPIdentifier name, const NPVariant *value)
bool NPN_GetProperty (NPP, NPObject *, NPIdentifier name, const NPVariant *value)
bool NPN_HasProperty (NPP, NPObject *, NPIdentifier name)
void NPN_ReleaseVariantValue (NPVariant *variant)
NPObject * NPN_RetainObject (NPObject *obj)
void NPN_ReleaseObject (NPObject *npobj)

Variables

TestState & runtest = _runtest
std::map< NPIdentifier,
NPVariant * > 
_properties
std::map< NPIdentifier,
NPInvokeFunctionPtr > 
_methods

Function Documentation

int main ( int  ,
char **   
)
bool NPN_GetProperty ( NPP  ,
NPObject *  ,
NPIdentifier  name,
const NPVariant *  value 
)

References _properties.

NPIdentifier NPN_GetStringIdentifier ( const NPUTF8 *  )
bool NPN_HasProperty ( NPP  ,
NPObject *  ,
NPIdentifier  name 
)

References _properties.

void* NPN_MemAlloc ( uint32_t  size)

References malloc().

void NPN_MemFree ( void *  ptr)

References assert, and free().

void NPN_ReleaseObject ( NPObject *  npobj)

References assert, and NPN_MemFree().

void NPN_ReleaseVariantValue ( NPVariant *  variant)
NPObject* NPN_RetainObject ( NPObject *  obj)

References assert.

bool NPN_SetProperty ( NPP  ,
NPObject *  ,
NPIdentifier  name,
const NPVariant *  value 
)

References _properties.

char* NPP_GetMIMEDescription ( void  )

References x.

void NS_DestroyPluginInstance ( nsPluginInstanceBase *  )
nsPluginInstanceBase* NS_NewPluginInstance ( nsPluginCreateData *  )
NPError NS_PluginGetValue ( NPPVariable  ,
void *   
)

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...

Referenced by gnash::nsPluginInstance::GetValue().

NPError NS_PluginInitialize ( void  )
void NS_PluginShutdown ( void  )

Variable Documentation

std::map<NPIdentifier, NPInvokeFunctionPtr> _methods
std::map<NPIdentifier, NPVariant *> _properties
TestState& runtest = _runtest