mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 19:50:14 +01:00
core/trivial: rename nm_utils_get_boot_id_*()
Rename to nm_utils_boot_id_*(), it matches nm_utils_machine_id_*() and nm_utils_host_id_get().
This commit is contained in:
parent
6ffcd26317
commit
d693e03a74
3 changed files with 6 additions and 6 deletions
|
|
@ -1295,7 +1295,7 @@ _get_stable_id (NMDevice *self,
|
|||
stable_type = nm_utils_stable_id_parse (stable_id,
|
||||
nm_device_get_ip_iface (self),
|
||||
!hwaddr_is_fake ? hwaddr : NULL,
|
||||
nm_utils_get_boot_id_str (),
|
||||
nm_utils_boot_id_str (),
|
||||
uuid,
|
||||
&generated);
|
||||
|
||||
|
|
|
|||
|
|
@ -2467,7 +2467,7 @@ again:
|
|||
* to read/write the secret-key to disk. Fallback to boot-id. The boot-id
|
||||
* itself may be fake and randomly generated ad-hoc, but that is as best
|
||||
* as it gets. */
|
||||
seed_bin = (const guint8 *) nm_utils_get_boot_id_bin ();
|
||||
seed_bin = (const guint8 *) nm_utils_boot_id_bin ();
|
||||
seed_len = sizeof (NMUuid);
|
||||
fake_type = "boot-id";
|
||||
hash_seed = "7ff0c8f5-5399-4901-ab63-61bf594abe8b";
|
||||
|
|
@ -2773,13 +2773,13 @@ again:
|
|||
}
|
||||
|
||||
const char *
|
||||
nm_utils_get_boot_id_str (void)
|
||||
nm_utils_boot_id_str (void)
|
||||
{
|
||||
return _boot_id_get ()->str;
|
||||
}
|
||||
|
||||
const NMUuid *
|
||||
nm_utils_get_boot_id_bin (void)
|
||||
nm_utils_boot_id_bin (void)
|
||||
{
|
||||
return &_boot_id_get ()->bin;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -275,8 +275,8 @@ const char *nm_utils_machine_id_str (void);
|
|||
const struct _NMUuid *nm_utils_machine_id_bin (void);
|
||||
gboolean nm_utils_machine_id_is_fake (void);
|
||||
|
||||
const char *nm_utils_get_boot_id_str (void);
|
||||
const struct _NMUuid *nm_utils_get_boot_id_bin (void);
|
||||
const char *nm_utils_boot_id_str (void);
|
||||
const struct _NMUuid *nm_utils_boot_id_bin (void);
|
||||
|
||||
gboolean nm_utils_host_id_get (const guint8 **out_host_id,
|
||||
gsize *out_host_id_len);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue