summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_addon_dll.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_addon_dll.h')
-rw-r--r--xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_addon_dll.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_addon_dll.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_addon_dll.h
new file mode 100644
index 0000000..ff7194f
--- /dev/null
+++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_addon_dll.h
@@ -0,0 +1,52 @@
1#pragma once
2
3/*
4 * Copyright (C) 2005-2015 Team Kodi
5 * http://kodi.tv
6 *
7 * This Program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
11 *
12 * This Program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with Kodi; see the file COPYING. If not, see
19 * <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#ifdef TARGET_WINDOWS
24#include <windows.h>
25#else
26#ifndef __cdecl
27#define __cdecl
28#endif
29#ifndef __declspec
30#define __declspec(X)
31#endif
32#endif
33
34#include "xbmc_addon_types.h"
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40 ADDON_STATUS __declspec(dllexport) ADDON_Create(void *callbacks, void* props);
41 void __declspec(dllexport) ADDON_Stop();
42 void __declspec(dllexport) ADDON_Destroy();
43 ADDON_STATUS __declspec(dllexport) ADDON_GetStatus();
44 bool __declspec(dllexport) ADDON_HasSettings();
45 unsigned int __declspec(dllexport) ADDON_GetSettings(ADDON_StructSetting ***sSet);
46 ADDON_STATUS __declspec(dllexport) ADDON_SetSetting(const char *settingName, const void *settingValue);
47 void __declspec(dllexport) ADDON_FreeSettings();
48 void __declspec(dllexport) ADDON_Announce(const char *flag, const char *sender, const char *message, const void *data);
49
50#ifdef __cplusplus
51};
52#endif