diff options
| author | manuel <manuel@mausz.at> | 2016-03-14 14:56:55 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2016-03-14 14:56:55 +0100 |
| commit | 4b3b7807b7df1964778855b5c0daab4cc417bd91 (patch) | |
| tree | 2d801f7ee868f6b6be5221bc2674eaf95f0e7074 /xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_callbacks.h | |
| parent | 1e0e2df2619a2c7fdc20806884eb81f36d458c61 (diff) | |
| download | kodi-pvr-build-4b3b7807b7df1964778855b5c0daab4cc417bd91.tar.gz kodi-pvr-build-4b3b7807b7df1964778855b5c0daab4cc417bd91.tar.bz2 kodi-pvr-build-4b3b7807b7df1964778855b5c0daab4cc417bd91.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.h | 53 |
1 files changed, 53 insertions, 0 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 new file mode 100644 index 0000000..720c62f --- /dev/null +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_callbacks.h | |||
| @@ -0,0 +1,53 @@ | |||
| 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 | ||
| 26 | extern "C" | ||
| 27 | { | ||
| 28 | #endif | ||
| 29 | |||
| 30 | typedef 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 | } CB_PeripheralLib; | ||
| 48 | |||
| 49 | #ifdef __cplusplus | ||
| 50 | } | ||
| 51 | #endif | ||
| 52 | |||
| 53 | #endif // __PERIPHERAL_CALLBACKS_H__ | ||
