Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
No Matches
kodi Namespace Reference


namespace  addon
namespace  audioengine
namespace  gui
namespace  network
namespace  platform
namespace  tools
namespace  vfs


using HardwareContext = ADDON_HARDWARE_CONTEXT


void ATTR_DLL_LOCAL Log (const ADDON_LOG loglevel, const char *format,...)
 Add a message to Kodi's log.
bool ATTR_DLL_LOCAL UnknownToUTF8 (const std::string &stringSrc, std::string &utf8StringDst, bool failOnBadChar=false)
 Translate a string with an unknown encoding to UTF8.
std::string ATTR_DLL_LOCAL GetLanguage (LangFormats format=LANG_FMT_ENGLISH_NAME, bool region=false)
 Returns the active language as a string.
void ATTR_DLL_LOCAL QueueFormattedNotification (QueueMsg type, const char *format,...)
 Writes the C string pointed by format in the GUI. If format includes format specifiers (subsequences beginning with %), the additional arguments following format are formatted and inserted in the resulting string replacing their respective specifiers.
void ATTR_DLL_LOCAL QueueNotification (QueueMsg type, const std::string &header, const std::string &message, const std::string &imageFile="", unsigned int displayTime=5000, bool withSound=true, unsigned int messageTime=1000)
 Queue a notification in the GUI.
std::string ATTR_DLL_LOCAL GetMD5 (const std::string &text)
 Get the MD5 digest of the given text.
std::string ATTR_DLL_LOCAL GetRegion (const std::string &id)
 Returns your regions setting as a string for the specified id.
void ATTR_DLL_LOCAL GetFreeMem (long &free, long &total, bool asBytes=false)
 Returns the amount of free memory in MByte (or as bytes) as an long integer.
int ATTR_DLL_LOCAL GetGlobalIdleTime ()
 Returns the elapsed idle time in seconds as an integer.
std::string ATTR_DLL_LOCAL GetCurrentSkinId ()
 Get the currently used skin identification name from Kodi.
bool ATTR_DLL_LOCAL IsAddonAvailable (const std::string &id, std::string &version, bool &enabled)
 To check another addon is available and usable inside Kodi.
void ATTR_DLL_LOCAL KodiVersion (kodi_version_t &version)
 Get current Kodi information and versions, returned data from the following kodi_version_t version; kodi::KodiVersion(version); is e.g.:
bool ATTR_DLL_LOCAL GetKeyboardLayout (int modifierKey, std::string &layout_name, std::vector< std::vector< std::string > > &layout)
 To get keyboard layout characters.
bool ATTR_DLL_LOCAL ChangeKeyboardLayout (std::string &layout_name)
 To change keyboard layout characters.