diff options
author | Thomas Haller <thaller@redhat.com> | 2016-10-05 14:38:01 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-10-05 14:46:18 +0200 |
commit | 84346d172ae0c4f02e9327feea1d6da26fa3f38d (patch) | |
tree | 54a3bb3ef2b4abeb3478d4f4f539eaa038e68ef8 | |
parent | a070a410dbb656ed7f74d274ae20f933e29ff56c (diff) | |
download | NetworkManager-84346d172ae0c4f02e9327feea1d6da26fa3f38d.tar.gz |
shared: add NMTST_UUID_INIT() macro
-rw-r--r-- | shared/nm-utils/nm-test-utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/nm-utils/nm-test-utils.h b/shared/nm-utils/nm-test-utils.h index 64604e38f1..75d01bb632 100644 --- a/shared/nm-utils/nm-test-utils.h +++ b/shared/nm-utils/nm-test-utils.h @@ -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) { |