forked from xbmc/xbmc
-
Notifications
You must be signed in to change notification settings - Fork 6
/
xbmc_addon_types.h
63 lines (56 loc) · 1.57 KB
/
xbmc_addon_types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef __XBMC_ADDON_TYPES_H__
#define __XBMC_ADDON_TYPES_H__
/*
* Copyright (C) 2005-2012 Team XBMC
* http://www.xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This Program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with XBMC; see the file COPYING. If not, see
* <http://www.gnu.org/licenses/>.
*
*/
#ifdef __cplusplus
extern "C" {
#endif
enum ADDON_STATUS
{
ADDON_STATUS_OK,
ADDON_STATUS_LOST_CONNECTION,
ADDON_STATUS_NEED_RESTART,
ADDON_STATUS_NEED_SETTINGS,
ADDON_STATUS_UNKNOWN,
ADDON_STATUS_NEED_SAVEDSETTINGS
};
typedef struct
{
int type;
char* id;
char* label;
int current;
char** entry;
unsigned int entry_elements;
} ADDON_StructSetting;
/*!
* @brief Handle used to return data from the PVR add-on to CPVRClient
*/
struct ADDON_HANDLE_STRUCT
{
void *callerAddress; /*!< address of the caller */
void *dataAddress; /*!< address to store data in */
int dataIdentifier; /*!< parameter to pass back when calling the callback */
};
typedef ADDON_HANDLE_STRUCT *ADDON_HANDLE;
#ifdef __cplusplus
};
#endif
#endif