kodi
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 #pragma once
10 
12 
13 extern "C"
14 {
15 namespace ADDON
16 {
17 
27 {
28  static void Init(AddonGlobalInterface* addonInterface);
29  static void DeInit(AddonGlobalInterface* addonInterface);
30 
42  static bool wake_on_lan(void* kodiBase, const char* mac);
43  static char* get_ip_address(void* kodiBase);
44  static char* get_hostname(void* kodiBase);
45  static char* get_user_agent(void* kodiBase);
46  static bool is_local_host(void* kodiBase, const char* hostname);
47  static bool is_host_on_lan(void* kodiBase, const char* hostname, bool offLineCheck);
48  static char* dns_lookup(void* kodiBase, const char* url, bool* ret);
49  static char* url_encode(void* kodiBase, const char* url);
51 };
52 
53 } /* namespace ADDON */
54 } /* extern "C" */
static bool wake_on_lan(void *kodiBase, const char *mac)
callback functions from add-on to kodi
Definition: Network.cpp:47
static bool is_host_on_lan(void *kodiBase, const char *hostname, bool offLineCheck)
Definition: Network.cpp:133
Main structure passed from kodi to addon with basic information needed to create add-on.
Definition: addon_base.h:378
Definition: Addon.cpp:39
Global general Add-on to Kodi callback functions.
Definition: Network.h:26