Lines Matching refs:src
17 UserDefOne *src, *dst; in test_clone_struct() local
19 src = g_new0(UserDefOne, 1); in test_clone_struct()
20 src->integer = 42; in test_clone_struct()
21 src->string = g_strdup("Hello"); in test_clone_struct()
22 src->has_enum1 = false; in test_clone_struct()
23 src->enum1 = ENUM_ONE_VALUE2; in test_clone_struct()
25 dst = QAPI_CLONE(UserDefOne, src); in test_clone_struct()
28 g_assert(dst->string != src->string); in test_clone_struct()
35 qapi_free_UserDefOne(src); in test_clone_struct()
67 uint8List *src = NULL, *dst; in test_clone_list() local
73 QAPI_LIST_PREPEND(src, i); in test_clone_list()
76 dst = QAPI_CLONE(uint8List, src); in test_clone_list()
84 qapi_free_uint8List(src); in test_clone_list()
90 Empty2 *src, *dst; in test_clone_empty() local
92 src = g_new0(Empty2, 1); in test_clone_empty()
93 dst = QAPI_CLONE(Empty2, src); in test_clone_empty()
95 qapi_free_Empty2(src); in test_clone_empty()
101 UserDefFlatUnion *src, *dst; in test_clone_complex1() local
103 src = g_new0(UserDefFlatUnion, 1); in test_clone_complex1()
104 src->integer = 123; in test_clone_complex1()
105 src->string = g_strdup("abc"); in test_clone_complex1()
106 src->enum1 = ENUM_ONE_VALUE1; in test_clone_complex1()
107 src->u.value1.boolean = true; in test_clone_complex1()
109 dst = QAPI_CLONE(UserDefFlatUnion, src); in test_clone_complex1()
119 qapi_free_UserDefFlatUnion(src); in test_clone_complex1()
125 WrapAlternate *src, *dst; in test_clone_complex2() local
127 src = g_new0(WrapAlternate, 1); in test_clone_complex2()
128 src->alt = g_new(UserDefAlternate, 1); in test_clone_complex2()
129 src->alt->type = QTYPE_QDICT; in test_clone_complex2()
130 src->alt->u.udfu.integer = 42; in test_clone_complex2()
132 src->alt->u.udfu.string = NULL; in test_clone_complex2()
133 src->alt->u.udfu.enum1 = ENUM_ONE_VALUE3; in test_clone_complex2()
134 src->alt->u.udfu.u.value3.intb = 99; in test_clone_complex2()
135 src->alt->u.udfu.u.value3.has_a_b = true; in test_clone_complex2()
136 src->alt->u.udfu.u.value3.a_b = true; in test_clone_complex2()
138 dst = QAPI_CLONE(WrapAlternate, src); in test_clone_complex2()
149 qapi_free_WrapAlternate(src); in test_clone_complex2()
155 UserDefOneList *src, *dst, *tail; in test_clone_complex3() local
158 src = NULL; in test_clone_complex3()
164 QAPI_LIST_PREPEND(src, elt); in test_clone_complex3()
168 QAPI_LIST_PREPEND(src, elt); in test_clone_complex3()
172 QAPI_LIST_PREPEND(src, elt); in test_clone_complex3()
174 dst = QAPI_CLONE(UserDefOneList, src); in test_clone_complex3()
195 qapi_free_UserDefOneList(src); in test_clone_complex3()