diff options
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/c-api/addon-instance/pvr/pvr_menu_hook.h')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/c-api/addon-instance/pvr/pvr_menu_hook.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/c-api/addon-instance/pvr/pvr_menu_hook.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/c-api/addon-instance/pvr/pvr_menu_hook.h new file mode 100644 index 0000000..df2216f --- /dev/null +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/c-api/addon-instance/pvr/pvr_menu_hook.h | |||
| @@ -0,0 +1,72 @@ | |||
| 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 "pvr_defines.h" | ||
| 12 | |||
| 13 | //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ | ||
| 14 | // "C" Definitions group 7 - Menu hook | ||
| 15 | #ifdef __cplusplus | ||
| 16 | extern "C" | ||
| 17 | { | ||
| 18 | #endif /* __cplusplus */ | ||
| 19 | |||
| 20 | //============================================================================ | ||
| 21 | /// @defgroup cpp_kodi_addon_pvr_Defs_Menuhook_PVR_MENUHOOK_CAT enum PVR_MENUHOOK_CAT | ||
| 22 | /// @ingroup cpp_kodi_addon_pvr_Defs_Menuhook | ||
| 23 | /// @brief **PVR context menu hook categories**\n | ||
| 24 | /// Possible menu types given to Kodi with @ref kodi::addon::CInstancePVRClient::AddMenuHook(). | ||
| 25 | /// | ||
| 26 | ///@{ | ||
| 27 | typedef enum PVR_MENUHOOK_CAT | ||
| 28 | { | ||
| 29 | /// @brief __-1__ : Unknown menu hook. | ||
| 30 | PVR_MENUHOOK_UNKNOWN = -1, | ||
| 31 | |||
| 32 | /// @brief __0__ : All categories. | ||
| 33 | PVR_MENUHOOK_ALL = 0, | ||
| 34 | |||
| 35 | /// @brief __1__ : For channels. | ||
| 36 | PVR_MENUHOOK_CHANNEL = 1, | ||
| 37 | |||
| 38 | /// @brief __2__ : For timers. | ||
| 39 | PVR_MENUHOOK_TIMER = 2, | ||
| 40 | |||
| 41 | /// @brief __3__ : For EPG. | ||
| 42 | PVR_MENUHOOK_EPG = 3, | ||
| 43 | |||
| 44 | /// @brief __4__ : For recordings. | ||
| 45 | PVR_MENUHOOK_RECORDING = 4, | ||
| 46 | |||
| 47 | /// @brief __5__ : For deleted recordings. | ||
| 48 | PVR_MENUHOOK_DELETED_RECORDING = 5, | ||
| 49 | |||
| 50 | /// @brief __6__ : For settings. | ||
| 51 | PVR_MENUHOOK_SETTING = 6, | ||
| 52 | } PVR_MENUHOOK_CAT; | ||
| 53 | ///@} | ||
| 54 | //---------------------------------------------------------------------------- | ||
| 55 | |||
| 56 | /*! | ||
| 57 | * @brief "C" PVR add-on menu hook. | ||
| 58 | * | ||
| 59 | * Structure used to interface in "C" between Kodi and Addon. | ||
| 60 | * | ||
| 61 | * See @ref kodi::addon::PVRMenuhook for description of values. | ||
| 62 | */ | ||
| 63 | typedef struct PVR_MENUHOOK | ||
| 64 | { | ||
| 65 | unsigned int iHookId; | ||
| 66 | unsigned int iLocalizedStringId; | ||
| 67 | enum PVR_MENUHOOK_CAT category; | ||
| 68 | } PVR_MENUHOOK; | ||
| 69 | |||
| 70 | #ifdef __cplusplus | ||
| 71 | } | ||
| 72 | #endif /* __cplusplus */ | ||
