Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
network.h
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#ifndef C_API_NETWORK_H
10#define C_API_NETWORK_H
11
12#include <stdbool.h>
13
14#ifdef __cplusplus
15extern "C"
16{
17#endif /* __cplusplus */
18
19 /*
20 * For interface between add-on and kodi.
21 *
22 * This structure defines the addresses of functions stored inside Kodi which
23 * are then available for the add-on to call
24 *
25 * All function pointers there are used by the C++ interface functions below.
26 * You find the set of them on xbmc/addons/interfaces/General.cpp
27 *
28 * Note: For add-on development itself this is not needed
29 */
31 {
32 bool (*wake_on_lan)(void* kodiBase, const char* mac);
33 char* (*get_ip_address)(void* kodiBase);
34 char* (*dns_lookup)(void* kodiBase, const char* url, bool* ret);
35 char* (*url_encode)(void* kodiBase, const char* url);
36 char* (*get_hostname)(void* kodiBase);
37 bool (*is_local_host)(void* kodiBase, const char* hostname);
38 bool (*is_host_on_lan)(void* kodiBase, const char* hostname, bool offLineCheck);
39 char* (*get_user_agent)(void* kodiBase);
41
42#ifdef __cplusplus
43} /* extern "C" */
44#endif /* __cplusplus */
45
46#endif /* C_API_NETWORK_H */
Definition network.h:31