Lines Matching full:loop
25 static void quit(int r, void* loop) in quit() argument
27 sd_event_exit((sd_event*)loop, r); in quit()
34 sd_event* loop = NULL; in wait_main() local
47 * GetObject call may fail with a timeout and cause the event loop to exit. in wait_main()
62 r = sd_event_default(&loop); in wait_main()
65 fprintf(stderr, "Error obtaining event loop: %s\n", strerror(-r)); in wait_main()
70 r = sd_bus_attach_event(conn, loop, SD_EVENT_PRIORITY_NORMAL); in wait_main()
75 "bus to event loop: %s\n", in wait_main()
80 r = mapper_wait_async(conn, loop, argv + 2, quit, loop, &wait); in wait_main()
87 r = sd_event_loop(loop); in wait_main()
90 fprintf(stderr, "Event loop exited: %s\n", strerror(-r)); in wait_main()
98 sd_event_unref(loop); in wait_main()
129 sd_event* loop = NULL; in subtree_main() local
158 r = sd_event_default(&loop); in subtree_main()
161 fprintf(stderr, "Error obtaining event loop: %s\n", strerror(-r)); in subtree_main()
165 r = sd_bus_attach_event(conn, loop, SD_EVENT_PRIORITY_NORMAL); in subtree_main()
168 fprintf(stderr, "Failed to attach system bus to event loop: %s\n", in subtree_main()
173 r = mapper_subtree_async(conn, loop, namespace, interface, quit, loop, in subtree_main()
181 r = sd_event_loop(loop); in subtree_main()
193 fprintf(stderr, "Error starting event loop: %d(%s)\n", r, in subtree_main()