Functions | Variables

test.cpp File Reference

#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"
Include dependency graph for test.cpp:

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

Function Documentation

int main ( int  argc,
char *  argv[] 
)
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  ) 
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...

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

NPError NS_PluginInitialize (  ) 
void NS_PluginShutdown (  ) 

Variable Documentation

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