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