Kodi Development  20.0
for Binary and Script based Add-Ons
screensaver.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_ADDONINSTANCE_SCREENSAVER_H
10 #define C_API_ADDONINSTANCE_SCREENSAVER_H
11 
12 #include "../addon_base.h"
13 
14 #ifdef __cplusplus
15 extern "C"
16 {
17 #endif /* __cplusplus */
18 
20 
26  typedef struct AddonProps_Screensaver
27  {
28  ADDON_HARDWARE_CONTEXT device;
29  int x;
30  int y;
31  int width;
32  int height;
33  float pixelRatio;
34  const char* name;
35  const char* presets;
36  const char* profile;
38 
45  {
46  KODI_HANDLE kodiInstance;
48 
55  {
56  KODI_HANDLE addonInstance;
57  bool(__cdecl* Start)(struct AddonInstance_Screensaver* instance);
58  void(__cdecl* Stop)(struct AddonInstance_Screensaver* instance);
59  void(__cdecl* Render)(struct AddonInstance_Screensaver* instance);
61 
68  {
69  struct AddonProps_Screensaver* props;
70  struct AddonToKodiFuncTable_Screensaver* toKodi;
71  struct KodiToAddonFuncTable_Screensaver* toAddon;
73 
74 #ifdef __cplusplus
75 } /* extern "C" */
76 #endif /* __cplusplus */
77 
78 #endif /* !C_API_ADDONINSTANCE_SCREENSAVER_H */
Screensaver instance.
Definition: screensaver.h:68
Screensaver properties.
Definition: screensaver.h:27
Screensaver callbacks.
Definition: screensaver.h:45
Screensaver function hooks.
Definition: screensaver.h:55