HbbTv  17.9.0
Open source HBBTV engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
plugin.c File Reference

HbbTV netscape Configuration. More...

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stddef.h>
#include "techtype.h"
#include "dbgfuncs.h"
#include "hbbtv_js.h"
#include "application_manager.h"
#include "oipfconfiguration.h"
#include "broadcast.h"
#include "oipfparentalcontrolmanager.h"
#include "avcontrol.h"
#include "oipfsearchmanager.h"
#include "oipfcapabilities.h"
#include "oipfrecordingscheduler.h"
#include "localsystem.h"
#include "networkinterface.h"
#include "oipfdrmagent.h"
#include "debug.h"
#include "plugin.h"
#include "hz_debug.h"
#include "npapi_utils.h"

Macros

#define PLUGIN_NAME   "DTVKit HbbTV Plug-in"
 
#define PLUGIN_DESCRIPTION   PLUGIN_NAME " Javascript extensions"
 
#define PLUGIN_VERSION   "1.0.0.0"
 
#define MAX_BUFF_SIZE   (1 << 16)
 

Functions

 NP_EXPORT (const char *)
 
 NP_EXPORT (NPError)
 Provides global initialization for plug-in. More...
 
 NP_EXPORT (char *)
 Gets the verison of the plugin. More...
 
NPError NPP_New (NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char *argn[], char *argv[], NPSavedData *saved)
 Creates a new instance of a plug-in. More...
 
NPError NPP_Destroy (NPP instance, NPSavedData **save)
 Destroy plugin. More...
 
NPError NPP_SetWindow (NPP instance, NPWindow *window)
 Set window. More...
 
NPError NPP_NewStream (NPP instance, NPMIMEType type, NPStream *stream, NPBool seekable, uint16_t *stype)
 new stream. More...
 
NPError NPP_DestroyStream (NPP instance, NPStream *stream, NPReason reason)
 Destroy Stream. More...
 
int32_t NPP_WriteReady (NPP instance, NPStream *stream)
 URL file data ready. More...
 
int32_t NPP_Write (NPP instance, NPStream *stream, int32_t offset, int32_t len, void *buffer)
 URL file data received. More...
 
void NPP_StreamAsFile (NPP instance, NPStream *stream, const char *fname)
 Stream as file. More...
 
void NPP_Print (NPP instance, NPPrint *platformPrint)
 print. More...
 
int16_t NPP_HandleEvent (NPP instance, void *event)
 Handle Event. More...
 
void NPP_URLNotify (NPP instance, const char *URL, NPReason reason, void *notifyData)
 URL Notify. More...
 
NPError NPP_GetValue (NPP instance, NPPVariable variable, void *value)
 Get Value. More...
 
NPError NPP_SetValue (NPP instance, NPNVariable variable, void *value)
 Set Value. More...
 

Variables

NPNetscapeFuncsbrowser_funcs
 
const S_PLUGIN_FUNCS g_plugin_callbacks
 

Detailed Description

HbbTV netscape Configuration.

Date
May 2013
Author
Peter Stanton

Function Documentation

NP_EXPORT ( NPError  )

Provides global initialization for plug-in.

Provides global deinitialization for a plug-in.

Allows the browser to query the plug-in for information.


Parameters
bFuncs- browser functions pointer
pFuncs- Take in a pointer to Functions which the browser can call
Returns
NP_EXPORT - Error

Parameters
future- not used
aVariable- What value is required
aValue- Returned value of type required
Returns
NP_EXPORT - char* vserion of the plugin

Returns
NP_EXPORT
NP_EXPORT ( char *  )

Gets the verison of the plugin.


Parameters
None
Returns
NP_EXPORT - char* vserion of the plugin
NPError NPP_Destroy ( NPP  instance,
NPSavedData **  save 
)

Destroy plugin.


Returns
NP_EXPORT
NPError NPP_DestroyStream ( NPP  instance,
NPStream stream,
NPReason  reason 
)

Destroy Stream.


Returns
NP_EXPORT
NPError NPP_GetValue ( NPP  instance,
NPPVariable  variable,
void *  value 
)

Get Value.


Returns
NP_EXPORT
int16_t NPP_HandleEvent ( NPP  instance,
void *  event 
)

Handle Event.


Returns
NP_EXPORT
NPError NPP_New ( NPMIMEType  pluginType,
NPP  instance,
uint16_t  mode,
int16_t  argc,
char *  argn[],
char *  argv[],
NPSavedData saved 
)

Creates a new instance of a plug-in.


Parameters
pluginTypePointer to the MIME type for new plug-in instance
instance- Contains instance-specific private data for the plug-in and the browser. This data is stored in instance->pdata.
Returns
NP_EXPORT - Error
NPError NPP_NewStream ( NPP  instance,
NPMIMEType  type,
NPStream stream,
NPBool  seekable,
uint16_t *  stype 
)

new stream.


Returns
NP_EXPORT
void NPP_Print ( NPP  instance,
NPPrint platformPrint 
)

print.


Returns
NP_EXPORT
NPError NPP_SetValue ( NPP  instance,
NPNVariable  variable,
void *  value 
)

Set Value.


Returns
NP_EXPORT
NPError NPP_SetWindow ( NPP  instance,
NPWindow window 
)

Set window.


Returns
NP_EXPORT
void NPP_StreamAsFile ( NPP  instance,
NPStream stream,
const char *  fname 
)

Stream as file.


Returns
NP_EXPORT
void NPP_URLNotify ( NPP  instance,
const char *  URL,
NPReason  reason,
void *  notifyData 
)

URL Notify.


Returns
NP_EXPORT
int32_t NPP_Write ( NPP  instance,
NPStream stream,
int32_t  offset,
int32_t  len,
void *  buffer 
)

URL file data received.


Returns
NP_EXPORT
int32_t NPP_WriteReady ( NPP  instance,
NPStream stream 
)

URL file data ready.


Returns
NP_EXPORT