Gnash  0.8.11dev
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. More...
 
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, NPVariant *value)
 
bool NPN_HasProperty (NPP, NPObject *, NPIdentifier name)
 
NPError NPN_GetValue (NPP, NPNVariable, void *)
 
bool NPN_Invoke (NPP, NPObject *, NPIdentifier, const NPVariant *, uint32_t, NPVariant *)
 
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

§ main()

int main ( int  ,
char **   
)

§ NPN_GetProperty()

bool NPN_GetProperty ( NPP  ,
NPObject *  ,
NPIdentifier  name,
NPVariant *  value 
)

References _properties.

§ NPN_GetStringIdentifier()

NPIdentifier NPN_GetStringIdentifier ( const NPUTF8 *  )

§ NPN_GetValue()

NPError NPN_GetValue ( NPP  ,
NPNVariable  ,
void *   
)

§ NPN_HasProperty()

bool NPN_HasProperty ( NPP  ,
NPObject *  ,
NPIdentifier  name 
)

References _properties.

§ NPN_Invoke()

bool NPN_Invoke ( NPP  ,
NPObject *  ,
NPIdentifier  ,
const NPVariant *  ,
uint32_t  ,
NPVariant *   
)

§ NPN_MemAlloc()

void* NPN_MemAlloc ( uint32_t  size)

Referenced by main().

§ NPN_MemFree()

void NPN_MemFree ( void *  ptr)

§ NPN_ReleaseObject()

void NPN_ReleaseObject ( NPObject *  npobj)

References NPN_MemFree().

Referenced by NPN_ReleaseVariantValue().

§ NPN_ReleaseVariantValue()

void NPN_ReleaseVariantValue ( NPVariant *  variant)

§ NPN_RetainObject()

NPObject* NPN_RetainObject ( NPObject *  obj)

§ NPN_SetProperty()

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

References _properties, and name.

§ NPP_GetMIMEDescription()

char* NPP_GetMIMEDescription ( void  )

References x.

§ NS_DestroyPluginInstance()

void NS_DestroyPluginInstance ( nsPluginInstanceBase *  )

§ NS_NewPluginInstance()

nsPluginInstanceBase* NS_NewPluginInstance ( nsPluginCreateData *  )

§ NS_PluginGetValue()

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

§ NS_PluginInitialize()

NPError NS_PluginInitialize ( void  )

§ NS_PluginShutdown()

void NS_PluginShutdown ( void  )

Variable Documentation

§ _methods

std::map<NPIdentifier, NPInvokeFunctionPtr> _methods

§ _properties

std::map<NPIdentifier, NPVariant *> _properties

§ runtest

TestState& runtest = _runtest

Referenced by main().