Kodi Development  20.0
for Binary and Script based Add-Ons
pvr_providers.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_PROVIDERS_H
10 #define C_API_ADDONINSTANCE_PVR_PROVIDERS_H
11 
12 #include "pvr_defines.h"
13 
14 #include <stdbool.h>
15 
16 //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
17 // "C" Definitions group 2 - PVR providers
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif /* __cplusplus */
22 
23  //============================================================================
28  #define PVR_PROVIDER_INVALID_UID -1
29  //----------------------------------------------------------------------------
30 
31  //============================================================================
36  #define PROVIDER_STRING_TOKEN_SEPARATOR ","
37 
38  //============================================================================
46  typedef enum PVR_PROVIDER_TYPE
47  {
50 
53 
56 
59 
62 
65 
70  //----------------------------------------------------------------------------
71 
79  typedef struct PVR_PROVIDER
80  {
81  unsigned int iUniqueId;
82  char strName[PVR_ADDON_NAME_STRING_LENGTH];
83  enum PVR_PROVIDER_TYPE type;
84  char strIconPath[PVR_ADDON_URL_STRING_LENGTH];
87  char strCountries[PVR_ADDON_COUNTRIES_STRING_LENGTH];
90  char strLanguages[PVR_ADDON_LANGUAGES_STRING_LENGTH];
91  } PVR_PROVIDER;
92 
93 #ifdef __cplusplus
94 }
95 #endif /* __cplusplus */
96 
97 #endif /* !C_API_ADDONINSTANCE_PVR_PROVIDERS_H */
PVR_PROVIDER_TYPE
Definition: pvr_providers.h:47
@ PVR_PROVIDER_TYPE_OTHER
6 : Other type of provider.
Definition: pvr_providers.h:67
@ PVR_PROVIDER_TYPE_AERIAL
4 : Aerial provider.
Definition: pvr_providers.h:61
@ PVR_PROVIDER_TYPE_IPTV
5 : IPTV provider.
Definition: pvr_providers.h:64
@ PVR_PROVIDER_TYPE_SATELLITE
2 : Satellite provider.
Definition: pvr_providers.h:55
@ PVR_PROVIDER_TYPE_CABLE
3 : Cable provider.
Definition: pvr_providers.h:58
@ PVR_PROVIDER_TYPE_UNKNOWN
0 : Unknown type.
Definition: pvr_providers.h:49
@ PVR_PROVIDER_TYPE_ADDON
1 : IPTV provider.
Definition: pvr_providers.h:52
"C" PVR add-on provider.
Definition: pvr_providers.h:80
char strLanguages[PVR_ADDON_LANGUAGES_STRING_LENGTH]
RFC 5646 language codes, separated by PROVIDER_STRING_TOKEN_SEPARATOR (e.g. 'en_GB,...
Definition: pvr_providers.h:90
char strCountries[PVR_ADDON_COUNTRIES_STRING_LENGTH]
ISO 3166 country codes, separated by PROVIDER_STRING_TOKEN_SEPARATOR (e.g 'GB,IE,FR,...
Definition: pvr_providers.h:87