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 #include "addons/kodi-dev-kit/include/kodi/c-api/gui/general.h"
12 
13 extern "C"
14 {
15 
16  struct AddonGlobalInterface;
17 
18  namespace ADDON
19  {
20 
30  {
31  static void Init(AddonGlobalInterface* addonInterface);
32  static void DeInit(AddonGlobalInterface* addonInterface);
33 
45  static void lock();
46  static void unlock();
47 
48  static int get_screen_height(KODI_HANDLE kodiBase);
49  static int get_screen_width(KODI_HANDLE kodiBase);
50  static int get_video_resolution(KODI_HANDLE kodiBase);
51  static int get_current_window_dialog_id(KODI_HANDLE kodiBase);
52  static int get_current_window_id(KODI_HANDLE kodiBase);
53  static ADDON_HARDWARE_CONTEXT get_hw_context(KODI_HANDLE kodiBase);
54  static AdjustRefreshRateStatus get_adjust_refresh_rate_status(KODI_HANDLE kodiBase);
56 
57  private:
58  static int m_iAddonGUILockRef;
59  };
60 
61  } /* namespace ADDON */
62 } /* extern "C" */
AdjustRefreshRateStatus
Adjust refresh rate enum Used to get the Adjust refresh rate status info.
Definition: general.h:24
Main structure passed from kodi to addon with basic information needed to create add-on.
Definition: addon_base.h:378
Global gui Add-on to Kodi callback functions.
Definition: General.h:29
Definition: Addon.cpp:39
static void lock()
callback functions from add-on to kodi
Definition: General.cpp:131