Lines Matching defs:NULL

44         _cleanup_free_ char *a = NULL, *b = NULL, *c = NULL, *d = NULL, *e = NULL;
46 assert_se(bus_path_encode_unique(NULL, "/foo/bar", "some.sender", "a.suffix", &a) >= 0 && streq_ptr(a, "/foo/bar/some_2esender/a_2esuffix"));
54 _cleanup_free_ char *a = NULL, *b = NULL, *c = NULL, *d = NULL, *e = NULL, *f = NULL;
57 assert_se(sd_bus_path_decode(a, "/waldo", &b) == 0 && b == NULL);
71 _cleanup_free_ char *a = NULL, *b = NULL, *c = NULL, *d = NULL, *e = NULL, *f = NULL;
73 assert_se(sd_bus_path_decode_many("/foo/bar", "/prefix/%", NULL) == 0);
74 assert_se(sd_bus_path_decode_many("/prefix/bar", "/prefix/%bar", NULL) == 1);
75 assert_se(sd_bus_path_decode_many("/foo/bar", "/prefix/%/suffix", NULL) == 0);
78 assert_se(sd_bus_path_decode_many("/prefix/one_foo_two/mid/three_bar_four/suffix", "/prefix/one_%_two/mid/three_%_four/suffix", NULL, &d) == 1 && streq_ptr(d, "bar"));
80 assert_se(sd_bus_path_decode_many("/foo/bar", "/foo/bar/%", NULL) == 0);
81 assert_se(sd_bus_path_decode_many("/foo/bar/suffix", "/foo/bar%", NULL) == 0);
82 assert_se(sd_bus_path_decode_many("/foo/bar/suffix", "/foo/%/bar", NULL) == 0);
83 assert_se(sd_bus_path_decode_many("/foo/bar/suffix", "/foo/%bar", NULL) == 0);
85 assert_se(sd_bus_path_decode_many("/foo/bar/suffix", "/foo/%%/suffix", NULL, NULL) == 0); /* multiple '%' are treated verbatim */
86 assert_se(sd_bus_path_decode_many("/foo/bar/suffix", "/foo/%/suffi", NULL) == 0);
88 assert_se(sd_bus_path_decode_many("/foo/bar/suffix", "/foo/%/%", NULL, NULL) == 1);
89 assert_se(sd_bus_path_decode_many("/foo/bar/suffix", "/%/%/%", NULL, NULL, NULL) == 1);
90 assert_se(sd_bus_path_decode_many("/foo/bar/suffix", "%/%/%", NULL, NULL, NULL) == 0);
91 assert_se(sd_bus_path_decode_many("/foo/bar/suffix", "/%/%", NULL, NULL) == 0);
92 assert_se(sd_bus_path_decode_many("/foo/bar/suffix", "/%/%/", NULL, NULL) == 0);
93 assert_se(sd_bus_path_decode_many("/foo/bar/suffix", "/%/", NULL) == 0);
94 assert_se(sd_bus_path_decode_many("/foo/bar/suffix", "/%", NULL) == 0);
95 assert_se(sd_bus_path_decode_many("/foo/bar/suffix", "%", NULL) == 0);
101 _cleanup_free_ char *t = NULL, *x = NULL, *y = NULL;
124 _cleanup_(sd_bus_message_unrefp) sd_bus_message *m = NULL, *copy = NULL;
128 void *buffer = NULL;
133 _cleanup_free_ char *first = NULL, *second = NULL, *third = NULL;
134 _cleanup_fclose_ FILE *ms = NULL;
136 _cleanup_(sd_bus_unrefp) sd_bus *bus = NULL;
153 r = sd_bus_message_append(m, "s", NULL);
193 r = sd_bus_message_append_array(m, 'u', NULL, 0);
227 g = g_dbus_message_new_from_blob(buffer, sz, 0, NULL);
254 r = bus_message_from_malloc(bus, buffer, sz, NULL, 0, NULL, &m);
350 r = sd_bus_message_peek_type(m, NULL, NULL);
380 assert_se(sd_bus_message_verify_type(m, 's', NULL) > 0);
385 assert_se(sd_bus_message_verify_type(m, 's', NULL) > 0);
395 assert_se(sd_bus_message_verify_type(m, 'b', NULL) > 0);
401 r = sd_bus_message_enter_container(m, 0, NULL);