mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-15 18:50:18 +01:00
This follows the recently introduced naming scheme and directory layout. "libnm-systemd-core" is an independent component, and as such should no be inside "src/core/". Move it. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/875
27 lines
607 B
C
27 lines
607 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2018 Red Hat, Inc.
|
|
*/
|
|
|
|
#include "libnm-systemd-core/nm-default-systemd-core.h"
|
|
|
|
#include "nm-sd-utils-core.h"
|
|
|
|
#include "libnm-glib-aux/nm-uuid.h"
|
|
|
|
#include "nm-sd-adapt-core.h"
|
|
|
|
#include "sd-id128.h"
|
|
|
|
/*****************************************************************************/
|
|
|
|
NMUuid *
|
|
nm_sd_utils_id128_get_machine(NMUuid *out_uuid)
|
|
{
|
|
g_assert(out_uuid);
|
|
|
|
G_STATIC_ASSERT_EXPR(sizeof(*out_uuid) == sizeof(sd_id128_t));
|
|
if (sd_id128_get_machine((sd_id128_t *) out_uuid) < 0)
|
|
return NULL;
|
|
return out_uuid;
|
|
}
|