mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-03 20:40:34 +01:00
shared: add NMTST_UUID_INIT() macro
This commit is contained in:
parent
a070a410db
commit
84346d172a
1 changed files with 4 additions and 0 deletions
|
|
@ -979,6 +979,10 @@ __define_nmtst_static(02, 1024)
|
|||
__define_nmtst_static(03, 1024)
|
||||
#undef __define_nmtst_static
|
||||
|
||||
#define NMTST_UUID_INIT(uuid) \
|
||||
gs_free char *_nmtst_hidden_##uuid = nm_utils_uuid_generate (); \
|
||||
const char *const uuid = _nmtst_hidden_##uuid
|
||||
|
||||
inline static const char *
|
||||
nmtst_uuid_generate (void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue