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

OIPF NetworkInterface netscape plugin. More...

#include <stdlib.h>
#include <string.h>
#include "techtype.h"
#include "dbgfuncs.h"
#include "npapi.h"
#include "npruntime.h"
#include "hbbtv_js.h"
#include "plugin.h"
#include "npapi_utils.h"
#include "hz_debug.h"

Macros

#define MAX_STRING_LENGTH   22
 
#define MAX_METHOD_STRING_LENGTH   19
 

Typedefs

typedef struct
s_networkinterface_handle 
S_NETWORKINTERFACE_HANDLE
 

Enumerations

enum  E_NETWORKINTERFACE_IDS {
  NETWORKINTERFACE_IP_ADDRESS = 0, NETWORKINTERFACE_MAC_ADDRESS, NETWORKINTERFACE_CONNECTED, NETWORKINTERFACE_ENABLED,
  NETWORKINTERFACE_ON_NETWORK_STATUS_CHANGE, NETWORKINTERFACE_MAX_IDS
}
 
enum  E_NETWORKINTERFACE_METHOD_IDS { NETWORKINTERFACE_ADD_EVENT_LISTENER = 0, NETWORKINTERFACE_REMOVE_EVENT_LISTENER, NETWORKINTERFACE_MAX_METHOD_IDS }
 

Functions

NPObjectNetworkInterfaceCreate (NPP instance, void *networkinterface_handle)
 Create the NetworkInterface and store in link list. More...
 
void * NetworkInterfaceGetHandle (NPObject *obj)
 
void NetworkInterface_onNetworkStatusChange (void *network_interface, U8BIT result)
 

Detailed Description

OIPF NetworkInterface netscape plugin.

Date
April 2014
Author
Sergio Panseri

Function Documentation

NPObject* NetworkInterfaceCreate ( NPP  instance,
void *  networkinterface_handle 
)

Create the NetworkInterface and store in link list.

Creates the NetworkInterface and store in link list.

Returns
Pointer to object created