Kodi Development  20.0
for Binary and Script based Add-Ons
pvr_channels.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 #ifndef C_API_ADDONINSTANCE_PVR_CHANNELS_H
10 #define C_API_ADDONINSTANCE_PVR_CHANNELS_H
11 
12 #include "pvr_defines.h"
13 
14 #include <stdbool.h>
15 
16 //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
17 // "C" Definitions group 2 - PVR channel
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif /* __cplusplus */
22 
23  //============================================================================
30  #define PVR_CHANNEL_INVALID_UID -1
31  //----------------------------------------------------------------------------
32 
40  typedef struct PVR_CHANNEL
41  {
42  unsigned int iUniqueId;
43  bool bIsRadio;
44  unsigned int iChannelNumber;
45  unsigned int iSubChannelNumber;
46  char strChannelName[PVR_ADDON_NAME_STRING_LENGTH];
47  char strMimeType[PVR_ADDON_INPUT_FORMAT_STRING_LENGTH];
48  unsigned int iEncryptionSystem;
49  char strIconPath[PVR_ADDON_URL_STRING_LENGTH];
50  bool bIsHidden;
51  bool bHasArchive;
52  int iOrder;
53  int iClientProviderUid;
54  } PVR_CHANNEL;
55 
63  typedef struct PVR_SIGNAL_STATUS
64  {
65  char strAdapterName[PVR_ADDON_NAME_STRING_LENGTH];
66  char strAdapterStatus[PVR_ADDON_NAME_STRING_LENGTH];
67  char strServiceName[PVR_ADDON_NAME_STRING_LENGTH];
68  char strProviderName[PVR_ADDON_NAME_STRING_LENGTH];
69  char strMuxName[PVR_ADDON_NAME_STRING_LENGTH];
70  int iSNR;
71  int iSignal;
72  long iBER;
73  long iUNC;
75 
76  //============================================================================
81  #define PVR_DESCRAMBLE_INFO_NOT_AVAILABLE -1
82  //----------------------------------------------------------------------------
83 
91  typedef struct PVR_DESCRAMBLE_INFO
92  {
93  int iPid;
94  int iCaid;
95  int iProvid;
96  int iEcmTime;
97  int iHops;
98  char strCardSystem[PVR_ADDON_DESCRAMBLE_INFO_STRING_LENGTH];
99  char strReader[PVR_ADDON_DESCRAMBLE_INFO_STRING_LENGTH];
100  char strFrom[PVR_ADDON_DESCRAMBLE_INFO_STRING_LENGTH];
101  char strProtocol[PVR_ADDON_DESCRAMBLE_INFO_STRING_LENGTH];
103 
104 #ifdef __cplusplus
105 }
106 #endif /* __cplusplus */
107 
108 #endif /* !C_API_ADDONINSTANCE_PVR_CHANNELS_H */
"C" PVR add-on channel.
Definition: pvr_channels.h:41
"C" PVR add-on descramble information.
Definition: pvr_channels.h:92
"C" PVR add-on signal status information.
Definition: pvr_channels.h:64