Lines Matching refs:slots

39 static int match_add(sd_bus_slot *slots, struct bus_match_node *root, const char *match, int value)…  in match_add()  argument
45 s = slots + value; in match_add()
76 sd_bus_slot slots[19] = {}; in main() local
87 …assert_se(match_add(slots, &root, "arg2='wal\\'do',sender='foo',type='signal',interface='bar.x',",… in main()
88 …assert_se(match_add(slots, &root, "arg2='wal\\'do2',sender='foo',type='signal',interface='bar.x',"… in main()
89 …assert_se(match_add(slots, &root, "arg3='test',sender='foo',type='signal',interface='bar.x',", 3) … in main()
90 …assert_se(match_add(slots, &root, "arg3='test',sender='foo',type='method_call',interface='bar.x',"… in main()
91 assert_se(match_add(slots, &root, "", 5) >= 0); in main()
92 assert_se(match_add(slots, &root, "interface='quux.x'", 6) >= 0); in main()
93 assert_se(match_add(slots, &root, "interface='bar.x'", 7) >= 0); in main()
94 assert_se(match_add(slots, &root, "member='waldo',path='/foo/bar'", 8) >= 0); in main()
95 assert_se(match_add(slots, &root, "path='/foo/bar'", 9) >= 0); in main()
96 assert_se(match_add(slots, &root, "path_namespace='/foo'", 10) >= 0); in main()
97 assert_se(match_add(slots, &root, "path_namespace='/foo/quux'", 11) >= 0); in main()
98 assert_se(match_add(slots, &root, "arg1='two'", 12) >= 0); in main()
99 assert_se(match_add(slots, &root, "member='waldo',arg2path='/prefix/'", 13) >= 0); in main()
100 …assert_se(match_add(slots, &root, "member=waldo,path='/foo/bar',arg3namespace='prefix'", 14) >= 0); in main()
101 assert_se(match_add(slots, &root, "arg4has='pi'", 15) >= 0); in main()
102 assert_se(match_add(slots, &root, "arg4has='pa'", 16) >= 0); in main()
103 assert_se(match_add(slots, &root, "arg4has='po'", 17) >= 0); in main()
104 assert_se(match_add(slots, &root, "arg4='pi'", 18) >= 0); in main()
116 assert_se(bus_match_remove(&root, &slots[8].match_callback) >= 0); in main()
117 assert_se(bus_match_remove(&root, &slots[13].match_callback) >= 0); in main()