mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-01 23:10:30 +01:00
Currently "src/" mostly contains the source code of the daemon. I say mostly, because that is not true, there are also the device, settings, wwan, ppp plugins, the initrd generator, the pppd and dhcp helper, and probably more. Also we have source code under libnm-core/, libnm/, clients/, and shared/ directories. That is all confusing. We should have one "src" directory, that contains subdirectories. Those subdirectories should contain individual parts (libraries or applications), that possibly have dependencies on other subdirectories. There should be a flat hierarchy of directories under src/, which contains individual modules. As the name "src/" is already taken, that prevents any sensible restructuring of the code. As a first step, move "src/" to "src/core/". This gives space to reorganize the code better by moving individual components into "src/". For inspiration, look at systemd's "src/" directory. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/743
29 lines
880 B
C
29 lines
880 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2014 - 2016 Red Hat, Inc.
|
|
*/
|
|
|
|
#ifndef __NM_SD_H__
|
|
#define __NM_SD_H__
|
|
|
|
#include "systemd/src/systemd/sd-dhcp-client.h"
|
|
#include "systemd/src/systemd/sd-dhcp6-client.h"
|
|
#include "systemd/src/systemd/sd-lldp.h"
|
|
#include "systemd/src/systemd/sd-ipv4ll.h"
|
|
|
|
/*****************************************************************************/
|
|
|
|
guint nm_sd_event_attach_default(void);
|
|
|
|
/*****************************************************************************
|
|
* expose internal systemd API
|
|
*
|
|
* FIXME: don't use any internal systemd API.
|
|
*****************************************************************************/
|
|
|
|
struct sd_dhcp_lease;
|
|
|
|
int dhcp_lease_save(struct sd_dhcp_lease *lease, const char *lease_file);
|
|
int dhcp_lease_load(struct sd_dhcp_lease **ret, const char *lease_file);
|
|
|
|
#endif /* __NM_SD_H__ */
|