Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
ADDON::Interface_General Struct Reference

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

#include <General.h>

Static Public Member Functions

static void Init (AddonGlobalInterface *addonInterface)
 
static void DeInit (AddonGlobalInterface *addonInterface)
 
static char * get_addon_info (void *kodiBase, const char *id)
 callback functions from add-on to kodi More...
 
static bool open_settings_dialog (void *kodiBase)
 
static char * get_localized_string (void *kodiBase, long label_id)
 
static char * unknown_to_utf8 (void *kodiBase, const char *source, bool *ret, bool failOnBadChar)
 
static char * get_language (void *kodiBase, int format, bool region)
 
static bool queue_notification (void *kodiBase, int type, const char *header, const char *message, const char *imageFile, unsigned int displayTime, bool withSound, unsigned int messageTime)
 
static void get_md5 (void *kodiBase, const char *text, char *md5)
 
static char * get_temp_path (void *kodiBase)
 
static char * get_region (void *kodiBase, const char *id)
 
static void get_free_mem (void *kodiInstance, long *free, long *total, bool as_bytes)
 
static int get_global_idle_time (void *kodiBase)
 
static bool is_addon_avilable (void *kodiBase, const char *id, char **version, bool *enabled)
 
static void kodi_version (void *kodiBase, char **compile_name, int *major, int *minor, char **revision, char **tag, char **tagversion)
 
static char * get_current_skin_id (void *kodiBase)
 
static bool change_keyboard_layout (void *kodiBase, char **layout_name)
 
static bool get_keyboard_layout (void *kodiBase, char **layout_name, int modifier_key, AddonKeyboardKeyTable *c_layout)
 

Detailed Description

Global general Add-on to Kodi callback functions.

To hold general 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/General.h"

Member Function Documentation

◆ change_keyboard_layout()

bool ADDON::Interface_General::change_keyboard_layout ( void kodiBase,
char **  layout_name 
)
static

◆ DeInit()

void ADDON::Interface_General::DeInit ( AddonGlobalInterface addonInterface)
static

◆ get_addon_info()

char * ADDON::Interface_General::get_addon_info ( void kodiBase,
const char *  id 
)
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.

◆ get_current_skin_id()

char * ADDON::Interface_General::get_current_skin_id ( void kodiBase)
static

◆ get_free_mem()

void ADDON::Interface_General::get_free_mem ( void kodiInstance,
long *  free,
long *  total,
bool  as_bytes 
)
static

◆ get_global_idle_time()

int ADDON::Interface_General::get_global_idle_time ( void kodiBase)
static

◆ get_keyboard_layout()

bool ADDON::Interface_General::get_keyboard_layout ( void kodiBase,
char **  layout_name,
int  modifier_key,
AddonKeyboardKeyTable c_layout 
)
static

◆ get_language()

char * ADDON::Interface_General::get_language ( void kodiBase,
int  format,
bool  region 
)
static

◆ get_localized_string()

char * ADDON::Interface_General::get_localized_string ( void kodiBase,
long  label_id 
)
static

◆ get_md5()

void ADDON::Interface_General::get_md5 ( void kodiBase,
const char *  text,
char *  md5 
)
static

◆ get_region()

char * ADDON::Interface_General::get_region ( void kodiBase,
const char *  id 
)
static

◆ get_temp_path()

char * ADDON::Interface_General::get_temp_path ( void kodiBase)
static

◆ Init()

void ADDON::Interface_General::Init ( AddonGlobalInterface addonInterface)
static

◆ is_addon_avilable()

bool ADDON::Interface_General::is_addon_avilable ( void kodiBase,
const char *  id,
char **  version,
bool enabled 
)
static

◆ kodi_version()

void ADDON::Interface_General::kodi_version ( void kodiBase,
char **  compile_name,
int major,
int minor,
char **  revision,
char **  tag,
char **  tagversion 
)
static

◆ open_settings_dialog()

bool ADDON::Interface_General::open_settings_dialog ( void kodiBase)
static

◆ queue_notification()

bool ADDON::Interface_General::queue_notification ( void kodiBase,
int  type,
const char *  header,
const char *  message,
const char *  imageFile,
unsigned int  displayTime,
bool  withSound,
unsigned int  messageTime 
)
static

◆ unknown_to_utf8()

char * ADDON::Interface_General::unknown_to_utf8 ( void kodiBase,
const char *  source,
bool ret,
bool  failOnBadChar 
)
static

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