38ee31a6e4
Add a "org.freedesktop.network1.DHCPServer" DBus interface that will be added on a link path where a DHCP server is provided. Currently, it only exposes a "Leases" property, although there are plans to expand it further. The property is updated thanks to the dhcp_server_callback().
10 lines
232 B
C
10 lines
232 B
C
/* SPDX-License-Identifier: LGPL-2.1+ */
|
|
#pragma once
|
|
|
|
#include "sd-bus.h"
|
|
#include "networkd-link.h"
|
|
|
|
extern const sd_bus_vtable dhcp_server_vtable[];
|
|
|
|
void dhcp_server_callback(sd_dhcp_server *server, uint64_t event, void *data);
|