Kodi Development  19.0
for Binary and Script based Add-Ons
pvr_menu_hook.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 #ifndef C_API_ADDONINSTANCE_PVR_MENUHOOK_H
12 #define C_API_ADDONINSTANCE_PVR_MENUHOOK_H
13 
14 #include "pvr_defines.h"
15 
16 //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
17 // "C" Definitions group 7 - Menu hook
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif /* __cplusplus */
22 
23  //============================================================================
30  typedef enum PVR_MENUHOOK_CAT
31  {
34 
37 
40 
43 
46 
49 
52 
57  //----------------------------------------------------------------------------
58 
66  typedef struct PVR_MENUHOOK
67  {
68  unsigned int iHookId;
69  unsigned int iLocalizedStringId;
70  enum PVR_MENUHOOK_CAT category;
71  } PVR_MENUHOOK;
72 
73 #ifdef __cplusplus
74 }
75 #endif /* __cplusplus */
76 
77 #endif /* !C_API_ADDONINSTANCE_PVR_MENUHOOK_H */
PVR_MENUHOOK_DELETED_RECORDING
@ PVR_MENUHOOK_DELETED_RECORDING
5 : For deleted recordings.
Definition: pvr_menu_hook.h:51
PVR_MENUHOOK_RECORDING
@ PVR_MENUHOOK_RECORDING
4 : For recordings.
Definition: pvr_menu_hook.h:48
PVR_MENUHOOK_EPG
@ PVR_MENUHOOK_EPG
3 : For EPG.
Definition: pvr_menu_hook.h:45
PVR_MENUHOOK_UNKNOWN
@ PVR_MENUHOOK_UNKNOWN
-1 : Unknown menu hook.
Definition: pvr_menu_hook.h:33
PVR_MENUHOOK_CAT
PVR_MENUHOOK_CAT
Definition: pvr_menu_hook.h:31
PVR_MENUHOOK_SETTING
@ PVR_MENUHOOK_SETTING
6 : For settings.
Definition: pvr_menu_hook.h:54
PVR_MENUHOOK_TIMER
@ PVR_MENUHOOK_TIMER
2 : For timers.
Definition: pvr_menu_hook.h:42
PVR_MENUHOOK
"C" PVR add-on menu hook.
Definition: pvr_menu_hook.h:67
PVR_MENUHOOK_ALL
@ PVR_MENUHOOK_ALL
0 : All categories.
Definition: pvr_menu_hook.h:36
PVR_MENUHOOK_CHANNEL
@ PVR_MENUHOOK_CHANNEL
1 : For channels.
Definition: pvr_menu_hook.h:39