Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
ADDON::Interface_Network Struct Reference

Global general Add-on to Kodi callback functions. More...

#include <Network.h>

Static Public Member Functions

static void Init (AddonGlobalInterface *addonInterface)
 
static void DeInit (AddonGlobalInterface *addonInterface)
 
static bool wake_on_lan (void *kodiBase, const char *mac)
 callback functions from add-on to kodi
 
static char * get_ip_address (void *kodiBase)
 
static char * get_hostname (void *kodiBase)
 
static char * get_user_agent (void *kodiBase)
 
static bool is_local_host (void *kodiBase, const char *hostname)
 
static bool is_host_on_lan (void *kodiBase, const char *hostname, bool offLineCheck)
 
static char * dns_lookup (void *kodiBase, const char *url, bool *ret)
 
static char * url_encode (void *kodiBase, const char *url)
 

Detailed Description

Global general Add-on to Kodi callback functions.

To hold network functions not related to a instance type and usable for every add-on type.

Related add-on header is "./xbmc/addons/kodi-dev-kit/include/kodi/Network.h"

Member Function Documentation

◆ DeInit()

void ADDON::Interface_Network::DeInit ( AddonGlobalInterface * addonInterface)
static

◆ dns_lookup()

char * ADDON::Interface_Network::dns_lookup ( void * kodiBase,
const char * url,
bool * ret )
static

◆ get_hostname()

char * ADDON::Interface_Network::get_hostname ( void * kodiBase)
static

◆ get_ip_address()

char * ADDON::Interface_Network::get_ip_address ( void * kodiBase)
static

◆ get_user_agent()

char * ADDON::Interface_Network::get_user_agent ( void * kodiBase)
static

◆ Init()

void ADDON::Interface_Network::Init ( AddonGlobalInterface * addonInterface)
static

◆ is_host_on_lan()

bool ADDON::Interface_Network::is_host_on_lan ( void * kodiBase,
const char * hostname,
bool offLineCheck )
static

TODO change to use the LanCheckMode enum class on the API signature

◆ is_local_host()

bool ADDON::Interface_Network::is_local_host ( void * kodiBase,
const char * hostname )
static

◆ url_encode()

char * ADDON::Interface_Network::url_encode ( void * kodiBase,
const char * url )
static

◆ wake_on_lan()

bool ADDON::Interface_Network::wake_on_lan ( void * kodiBase,
const char * mac )
static

callback functions from add-on to kodi

Note
To add a new function use the "_" style to directly identify an add-on callback function. Everything with CamelCase is only to be used in Kodi.

The parameter kodiBase is used to become the pointer for a CAddonDll class.


The documentation for this struct was generated from the following files: