kodi
general.h
1 /*
2  * Copyright (C) 2005-2020 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 #ifndef C_API_GUI_GENERAL_H
10 #define C_API_GUI_GENERAL_H
11 
12 #include "definitions.h"
13 
14 #ifdef __cplusplus
15 extern "C"
16 {
17 #endif /* __cplusplus */
18 
19  //==============================================================================
25  {
26  ADJUST_REFRESHRATE_STATUS_OFF = 0,
27  ADJUST_REFRESHRATE_STATUS_ALWAYS,
28  ADJUST_REFRESHRATE_STATUS_ON_STARTSTOP,
29  ADJUST_REFRESHRATE_STATUS_ON_START,
31  //------------------------------------------------------------------------------
32 
34  {
35  void (*lock)();
36  void (*unlock)();
37  int (*get_screen_height)(KODI_HANDLE kodiBase);
38  int (*get_screen_width)(KODI_HANDLE kodiBase);
39  int (*get_video_resolution)(KODI_HANDLE kodiBase);
40  int (*get_current_window_dialog_id)(KODI_HANDLE kodiBase);
41  int (*get_current_window_id)(KODI_HANDLE kodiBase);
42  ADDON_HARDWARE_CONTEXT (*get_hw_context)(KODI_HANDLE kodiBase);
43  AdjustRefreshRateStatus (*get_adjust_refresh_rate_status)(KODI_HANDLE kodiBase);
45 
46 #ifdef __cplusplus
47 } /* extern "C" */
48 #endif /* __cplusplus */
49 
50 #endif /* !C_API_GUI_GENERAL_H */
AdjustRefreshRateStatus
Adjust refresh rate enum Used to get the Adjust refresh rate status info.
Definition: general.h:24