Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
addon_base.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>

Classes

struct  KODI_ADDON_INSTANCE_FUNC
 
struct  KODI_ADDON_INSTANCE_FUNC_CB
 
struct  KODI_ADDON_INSTANCE_INFO
 
struct  KODI_ADDON_INSTANCE_STRUCT
 
struct  AddonToKodiFuncTable_kodi_addon
 
struct  AddonToKodiFuncTable_Addon
 Callback function tables from addon to Kodi Set complete from Kodi! More...
 
struct  KodiToAddonFuncTable_Addon
 Function tables from Kodi to addon. More...
 
struct  AddonGlobalInterface
 Main structure passed from kodi to addon with basic information needed to create add-on. More...
 

Macros

#define NOMINMAX
 
#define __cdecl
 
#define __declspec(X)
 
#define ATTR_PACKED
 
#define PRAGMA_PACK   1
 
#define ATTR_FORCEINLINE   inline
 
#define ATTR_DLL_IMPORT
 
#define ATTR_DLL_EXPORT
 
#define ATTR_DLL_LOCAL
 
#define ATTR_APIENTRY
 
#define ATTR_APIENTRYP   ATTR_APIENTRY*
 
#define ADDON_STANDARD_STRING_LENGTH   1024
 
#define ADDON_STANDARD_STRING_LENGTH_SMALL   256
 

Typedefs

typedef voidKODI_ADDON_HDL
 
typedef voidKODI_ADDON_BACKEND_HDL
 
typedef voidKODI_ADDON_INSTANCE_HDL
 
typedef voidKODI_ADDON_INSTANCE_BACKEND_HDL
 
typedef voidADDON_HARDWARE_CONTEXT
 
typedef voidKODI_ADDON_FUNC_DUMMY
 
typedef enum ADDON_STATUS ADDON_STATUS
 
typedef enum ADDON_LOG ADDON_LOG
 
typedef struct KODI_ADDON_INSTANCE_FUNC KODI_ADDON_INSTANCE_FUNC
 
typedef struct KODI_ADDON_INSTANCE_FUNC_CB KODI_ADDON_INSTANCE_FUNC_CB
 
typedef int KODI_ADDON_INSTANCE_TYPE
 
typedef struct KODI_ADDON_INSTANCE_INFO KODI_ADDON_INSTANCE_INFO
 
typedef struct KODI_ADDON_INSTANCE_STRUCT KODI_ADDON_INSTANCE_STRUCT
 
typedef voidKODI_HANDLE
 Standard undefined pointer handle.
 
typedef struct AddonToKodiFuncTable_kodi_addon AddonToKodiFuncTable_kodi_addon
 
typedef struct AddonToKodiFuncTable_Addon AddonToKodiFuncTable_Addon
 Callback function tables from addon to Kodi Set complete from Kodi!
 
typedef KODI_ADDON_HDLhdl
 
typedef struct KODI_ADDON_INSTANCE_STRUCTinstance
 
typedef struct KodiToAddonFuncTable_Addon KodiToAddonFuncTable_Addon
 Function tables from Kodi to addon.
 
typedef struct AddonGlobalInterface AddonGlobalInterface
 Main structure passed from kodi to addon with basic information needed to create add-on.
 

Enumerations

enum  ADDON_STATUS {
  ADDON_STATUS_OK , ADDON_STATUS_LOST_CONNECTION , ADDON_STATUS_NEED_RESTART , ADDON_STATUS_NEED_SETTINGS ,
  ADDON_STATUS_UNKNOWN , ADDON_STATUS_PERMANENT_FAILURE , ADDON_STATUS_NOT_IMPLEMENTED
}
 
enum  ADDON_LOG {
  ADDON_LOG_DEBUG = 0 , ADDON_LOG_INFO = 1 , ADDON_LOG_WARNING = 2 , ADDON_LOG_ERROR = 3 ,
  ADDON_LOG_FATAL = 4
}
 

Functions

enum ADDON_STATUS (ATTR_APIENTRYP PFN_KODI_ADDON_INSTANCE_SETTING_CHANGE_STRING_V1)(const KODI_ADDON_INSTANCE_HDL hdl
 
typedef void (ATTR_APIENTRYP PFN_KODI_ADDON_DESTROY_V1)(const KODI_ADDON_HDL hdl)
 

Variables

enum const char * name
 
enum const char const char * value
 

Macro Definition Documentation

◆ __cdecl

#define __cdecl

◆ __declspec

#define __declspec ( X)

◆ ADDON_STANDARD_STRING_LENGTH

#define ADDON_STANDARD_STRING_LENGTH   1024

◆ ADDON_STANDARD_STRING_LENGTH_SMALL

#define ADDON_STANDARD_STRING_LENGTH_SMALL   256

◆ ATTR_APIENTRY

#define ATTR_APIENTRY

◆ ATTR_APIENTRYP

#define ATTR_APIENTRYP   ATTR_APIENTRY*

◆ ATTR_DLL_EXPORT

#define ATTR_DLL_EXPORT

◆ ATTR_DLL_IMPORT

#define ATTR_DLL_IMPORT

◆ ATTR_DLL_LOCAL

#define ATTR_DLL_LOCAL

◆ ATTR_FORCEINLINE

#define ATTR_FORCEINLINE   inline

◆ ATTR_PACKED

#define ATTR_PACKED

◆ NOMINMAX

#define NOMINMAX

◆ PRAGMA_PACK

#define PRAGMA_PACK   1

Typedef Documentation

◆ ADDON_HARDWARE_CONTEXT

◆ AddonGlobalInterface

typedef struct AddonGlobalInterface AddonGlobalInterface

Main structure passed from kodi to addon with basic information needed to create add-on.

◆ AddonToKodiFuncTable_Addon

typedef struct AddonToKodiFuncTable_Addon AddonToKodiFuncTable_Addon

Callback function tables from addon to Kodi Set complete from Kodi!

◆ AddonToKodiFuncTable_kodi_addon

typedef struct AddonToKodiFuncTable_kodi_addon AddonToKodiFuncTable_kodi_addon

◆ hdl

typedef KODI_ADDON_HDL* hdl

◆ instance

◆ KODI_ADDON_BACKEND_HDL

◆ KODI_ADDON_FUNC_DUMMY

◆ KODI_ADDON_HDL

typedef void* KODI_ADDON_HDL

◆ KODI_ADDON_INSTANCE_BACKEND_HDL

◆ KODI_ADDON_INSTANCE_FUNC

typedef struct KODI_ADDON_INSTANCE_FUNC KODI_ADDON_INSTANCE_FUNC

◆ KODI_ADDON_INSTANCE_FUNC_CB

typedef struct KODI_ADDON_INSTANCE_FUNC_CB KODI_ADDON_INSTANCE_FUNC_CB

◆ KODI_ADDON_INSTANCE_HDL

◆ KODI_ADDON_INSTANCE_INFO

typedef struct KODI_ADDON_INSTANCE_INFO KODI_ADDON_INSTANCE_INFO

◆ KODI_ADDON_INSTANCE_STRUCT

typedef struct KODI_ADDON_INSTANCE_STRUCT KODI_ADDON_INSTANCE_STRUCT

◆ KODI_ADDON_INSTANCE_TYPE

◆ KODI_HANDLE

typedef void* KODI_HANDLE

Standard undefined pointer handle.

◆ KodiToAddonFuncTable_Addon

typedef struct KodiToAddonFuncTable_Addon KodiToAddonFuncTable_Addon

Function tables from Kodi to addon.

Function Documentation

◆ ADDON_STATUS()

enum ADDON_STATUS ( ATTR_APIENTRYP PFN_KODI_ADDON_INSTANCE_SETTING_CHANGE_STRING_V1) const

◆ void()

typedef void ( ATTR_APIENTRYP PFN_KODI_ADDON_DESTROY_V1) const

Variable Documentation

◆ name

enum const char * name

◆ value

enum const char float value