summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_callbacks.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2017-06-04 16:57:49 +0200
committermanuel <manuel@mausz.at>2017-06-04 16:57:49 +0200
commitf44ecaa4f27e7538ddcad66d40e543bffa2d2d86 (patch)
treed8de60fc7e17edeb6f0921726c038ee54b281445 /xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_callbacks.h
parentae08c8b7221bc965ac40d70e53fc8fcddb050c46 (diff)
downloadkodi-pvr-build-f44ecaa4f27e7538ddcad66d40e543bffa2d2d86.tar.gz
kodi-pvr-build-f44ecaa4f27e7538ddcad66d40e543bffa2d2d86.tar.bz2
kodi-pvr-build-f44ecaa4f27e7538ddcad66d40e543bffa2d2d86.zip
sync with upstream
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_callbacks.h')
-rw-r--r--xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_callbacks.h63
1 files changed, 0 insertions, 63 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_callbacks.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_callbacks.h
deleted file mode 100644
index 2dfc571..0000000
--- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_callbacks.h
+++ /dev/null
@@ -1,63 +0,0 @@
1/*
2 * Copyright (C) 2014-2016 Team Kodi
3 * http://kodi.tv
4 *
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this Program; see the file COPYING. If not, see
17 * <http://www.gnu.org/licenses/>.
18 *
19 */
20#ifndef __PERIPHERAL_CALLBACKS_H__
21#define __PERIPHERAL_CALLBACKS_H__
22
23#include "kodi_peripheral_types.h"
24
25#ifdef __cplusplus
26extern "C"
27{
28#endif
29
30typedef struct CB_PeripheralLib
31{
32 /*!
33 * @brief Trigger a scan for peripherals
34 *
35 * The add-on calls this if a change in hardware is detected.
36 */
37 void (*TriggerScan)(void* addonData);
38
39 /*!
40 * @brief Notify the frontend that button maps have changed
41 *
42 * @param[optional] deviceName The name of the device to refresh, or empty/null for all devices
43 * @param[optional] controllerId The controller ID to refresh, or empty/null for all controllers
44 */
45 void (*RefreshButtonMaps)(void* addonData, const char* deviceName, const char* controllerId);
46
47 /*!
48 * @brief Return the number of features belonging to the specified controller
49 *
50 * @param controllerId The controller ID to enumerate
51 * @param type[optional] Type to filter by, or JOYSTICK_FEATURE_TYPE_UNKNOWN for all features
52 *
53 * @return The number of features matching the request parameters
54 */
55 unsigned int (*FeatureCount)(void* addonData, const char* controllerId, JOYSTICK_FEATURE_TYPE type);
56
57} CB_PeripheralLib;
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif // __PERIPHERAL_CALLBACKS_H__