summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-addon-dev-kit/include/kodi/c-api/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/c-api/network.h')
-rw-r--r--xbmc/addons/kodi-addon-dev-kit/include/kodi/c-api/network.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/c-api/network.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/c-api/network.h
new file mode 100644
index 0000000..6c0441f
--- /dev/null
+++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/c-api/network.h
@@ -0,0 +1,43 @@
1/*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9#pragma once
10
11#include <stddef.h>
12
13#ifdef __cplusplus
14extern "C"
15{
16#endif /* __cplusplus */
17
18 /*
19 * For interface between add-on and kodi.
20 *
21 * This structure defines the addresses of functions stored inside Kodi which
22 * are then available for the add-on to call
23 *
24 * All function pointers there are used by the C++ interface functions below.
25 * You find the set of them on xbmc/addons/interfaces/General.cpp
26 *
27 * Note: For add-on development itself this is not needed
28 */
29 typedef struct AddonToKodiFuncTable_kodi_network
30 {
31 bool (*wake_on_lan)(void* kodiBase, const char* mac);
32 char* (*get_ip_address)(void* kodiBase);
33 char* (*dns_lookup)(void* kodiBase, const char* url, bool* ret);
34 char* (*url_encode)(void* kodiBase, const char* url);
35 char* (*get_hostname)(void* kodiBase);
36 bool (*is_local_host)(void* kodiBase, const char* hostname);
37 bool (*is_host_on_lan)(void* kodiBase, const char* hostname, bool offLineCheck);
38 char* (*get_user_agent)(void* kodiBase);
39 } AddonToKodiFuncTable_kodi_network;
40
41#ifdef __cplusplus
42} /* extern "C" */
43#endif /* __cplusplus */