Kodi Development  20.0
for Binary and Script based Add-Ons
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 
20  {
21  void (*lock)();
22  void (*unlock)();
23  int (*get_screen_height)(KODI_HANDLE kodiBase);
24  int (*get_screen_width)(KODI_HANDLE kodiBase);
25  int (*get_video_resolution)(KODI_HANDLE kodiBase);
26  int (*get_current_window_dialog_id)(KODI_HANDLE kodiBase);
27  int (*get_current_window_id)(KODI_HANDLE kodiBase);
28  ADDON_HARDWARE_CONTEXT (*get_hw_context)(KODI_HANDLE kodiBase);
30 
31 #ifdef __cplusplus
32 } /* extern "C" */
33 #endif /* __cplusplus */
34 
35 #endif /* !C_API_GUI_GENERAL_H */