mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-19 04:30:37 +01:00
shared/tests: add nmtst_rand_select_str() helper
This commit is contained in:
parent
b377a7d0c9
commit
a9e4d020cb
1 changed files with 2 additions and 0 deletions
|
|
@ -977,6 +977,8 @@ nmtst_rand_buf(GRand *rand, gpointer buffer, gsize buffer_length)
|
|||
|
||||
#define nmtst_rand_select(...) _nmtst_rand_select(NM_UNIQ, __VA_ARGS__)
|
||||
|
||||
#define nmtst_rand_select_str(x, ...) nmtst_rand_select((const char *) (x), ##__VA_ARGS__)
|
||||
|
||||
static inline void *
|
||||
nmtst_rand_perm(GRand *rand, void *dst, const void *src, gsize elmt_size, gsize n_elmt)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue