kodi
General.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 extern "C"
12 {
13 
16 
17 namespace ADDON
18 {
19 
29 {
30  static void Init(AddonGlobalInterface* addonInterface);
31  static void DeInit(AddonGlobalInterface* addonInterface);
32 
44  static char* unknown_to_utf8(void* kodiBase, const char* source, bool* ret, bool failOnBadChar);
45  static char* get_language(void* kodiBase, int format, bool region);
46  static bool queue_notification(void* kodiBase,
47  int type,
48  const char* header,
49  const char* message,
50  const char* imageFile,
51  unsigned int displayTime,
52  bool withSound,
53  unsigned int messageTime);
54  static void get_md5(void* kodiBase, const char* text, char* md5);
55  static char* get_region(void* kodiBase, const char* id);
56  static void get_free_mem(void* kodiInstance, long* free, long* total, bool as_bytes);
57  static int get_global_idle_time(void* kodiBase);
58  static bool is_addon_avilable(void* kodiBase, const char* id, char** version, bool* enabled);
59  static void kodi_version(void* kodiBase,
60  char** compile_name,
61  int* major,
62  int* minor,
63  char** revision,
64  char** tag,
65  char** tagversion);
66  static char* get_current_skin_id(void* kodiBase);
67  static bool change_keyboard_layout(void* kodiBase, char** layout_name);
68  static bool get_keyboard_layout(void* kodiBase,
69  char** layout_name,
70  int modifier_key,
71  AddonKeyboardKeyTable* c_layout);
73 };
74 
75 } /* namespace ADDON */
76 } /* extern "C" */
Definition: general.h:83
static char * unknown_to_utf8(void *kodiBase, const char *source, bool *ret, bool failOnBadChar)
callback functions from add-on to kodi
Definition: General.cpp:69
Main structure passed from kodi to addon with basic information needed to create add-on.
Definition: addon_base.h:378
Global general Add-on to Kodi callback functions.
Definition: General.h:28
Definition: Addon.cpp:39