Home
last modified time | relevance | path

Searched refs:watch (Results 1 – 25 of 149) sorted by relevance

123456

/external/dbus/dbus/
Ddbus-watch.c57 _dbus_watch_get_enabled (DBusWatch *watch) in _dbus_watch_get_enabled() argument
59 return watch->enabled; in _dbus_watch_get_enabled()
63 _dbus_watch_get_oom_last_time (DBusWatch *watch) in _dbus_watch_get_oom_last_time() argument
65 return watch->oom_last_time; in _dbus_watch_get_oom_last_time()
69 _dbus_watch_set_oom_last_time (DBusWatch *watch, in _dbus_watch_set_oom_last_time() argument
72 watch->oom_last_time = oom; in _dbus_watch_set_oom_last_time()
95 DBusWatch *watch; in _dbus_watch_new() local
101 watch = dbus_new0 (DBusWatch, 1); in _dbus_watch_new()
102 if (watch == NULL) in _dbus_watch_new()
105 watch->refcount = 1; in _dbus_watch_new()
[all …]
Ddbus-watch.h43 typedef dbus_bool_t (* DBusWatchHandler) (DBusWatch *watch,
53 DBusWatch* _dbus_watch_ref (DBusWatch *watch);
54 void _dbus_watch_unref (DBusWatch *watch);
55 void _dbus_watch_invalidate (DBusWatch *watch);
56 void _dbus_watch_sanitize_condition (DBusWatch *watch,
58 void _dbus_watch_set_handler (DBusWatch *watch,
73 DBusWatch *watch);
75 DBusWatch *watch);
77 DBusWatch *watch,
79 dbus_bool_t _dbus_watch_get_enabled (DBusWatch *watch);
[all …]
Ddbus-server-socket.c55 DBusWatch **watch; /**< File descriptor watch. */ member
69 if (socket_server->watch[i]) in socket_finalize()
71 _dbus_watch_unref (socket_server->watch[i]); in socket_finalize()
72 socket_server->watch[i] = NULL; in socket_finalize()
76 dbus_free (socket_server->watch); in socket_finalize()
158 socket_handle_watch (DBusWatch *watch, in socket_handle_watch() argument
175 if (socket_server->watch[i] == watch) in socket_handle_watch()
188 listen_fd = dbus_watch_get_socket (watch); in socket_handle_watch()
233 if (socket_server->watch[i]) in socket_disconnect()
236 socket_server->watch[i]); in socket_disconnect()
[all …]
Ddbus-mainloop.c109 DBusWatch *watch; in free_watch_table_entry() local
116 for (watch = _dbus_list_pop_first (watches); in free_watch_table_entry()
117 watch != NULL; in free_watch_table_entry()
118 watch = _dbus_list_pop_first (watches)) in free_watch_table_entry()
120 _dbus_watch_unref (watch); in free_watch_table_entry()
292 DBusWatch *watch) in _dbus_loop_add_watch() argument
297 fd = dbus_watch_get_socket (watch); in _dbus_loop_add_watch()
305 if (!_dbus_list_append (watches, _dbus_watch_ref (watch))) in _dbus_loop_add_watch()
307 _dbus_watch_unref (watch); in _dbus_loop_add_watch()
316 dbus_watch_get_flags (watch), in _dbus_loop_add_watch()
[all …]
Ddbus-connection.h91 typedef dbus_bool_t (* DBusAddWatchFunction) (DBusWatch *watch,
97 typedef void (* DBusWatchToggledFunction) (DBusWatch *watch,
103 typedef void (* DBusRemoveWatchFunction) (DBusWatch *watch,
451 DBUS_DEPRECATED int dbus_watch_get_fd (DBusWatch *watch);
455 int dbus_watch_get_unix_fd (DBusWatch *watch);
457 int dbus_watch_get_socket (DBusWatch *watch);
459 unsigned int dbus_watch_get_flags (DBusWatch *watch);
461 void* dbus_watch_get_data (DBusWatch *watch);
463 void dbus_watch_set_data (DBusWatch *watch,
467 dbus_bool_t dbus_watch_handle (DBusWatch *watch,
[all …]
Ddbus-mainloop.h33 typedef dbus_bool_t (* DBusWatchFunction) (DBusWatch *watch,
41 DBusWatch *watch);
43 DBusWatch *watch);
45 DBusWatch *watch);
Ddbus-server.c223 DBusWatch *watch);
226 DBusWatch *watch);
229 DBusWatch *watch,
234 DBusWatch *watch, in protected_change_watch() argument
258 retval = (* add_function) (watches, watch); in protected_change_watch()
262 (* remove_function) (watches, watch); in protected_change_watch()
267 (* toggle_function) (watches, watch, enabled); in protected_change_watch()
289 DBusWatch *watch) in _dbus_server_add_watch() argument
292 return protected_change_watch (server, watch, in _dbus_server_add_watch()
305 DBusWatch *watch) in _dbus_server_remove_watch() argument
[all …]
Ddbus-connection-internal.h58 DBusWatch *watch);
60 DBusWatch *watch);
62 DBusWatch *watch,
64 dbus_bool_t _dbus_connection_handle_watch (DBusWatch *watch,
Ddbus-transport-socket.c874 DBusWatch *watch, in unix_error_with_read_to_come() argument
884 if (watch != transport->read_watch && in unix_error_with_read_to_come()
893 DBusWatch *watch, in socket_handle_watch() argument
898 _dbus_assert (watch == socket_transport->read_watch || in socket_handle_watch()
899 watch == socket_transport->write_watch); in socket_handle_watch()
900 _dbus_assert (watch != NULL); in socket_handle_watch()
906 if (!(flags & DBUS_WATCH_READABLE) && unix_error_with_read_to_come (transport, watch, flags)) in socket_handle_watch()
913 if (watch == socket_transport->read_watch && in socket_handle_watch()
919 watch, flags); in socket_handle_watch()
943 else if (watch == socket_transport->write_watch && in socket_handle_watch()
[all …]
/external/libchrome/base/files/
Dfile_path_watcher_linux.cc58 void RemoveWatch(Watch watch, FilePathWatcherImpl* watcher);
140 : watch(InotifyReader::kInvalidWatch), in WatchEntry()
143 InotifyReader::Watch watch; member
167 void TrackWatchForRecursion(InotifyReader::Watch watch, const FilePath& path);
300 Watch watch = inotify_add_watch(inotify_fd_, path.value().c_str(), in AddWatch() local
305 if (watch == kInvalidWatch) in AddWatch()
308 watchers_[watch].insert(watcher); in AddWatch()
310 return watch; in AddWatch()
313 void InotifyReader::RemoveWatch(Watch watch, FilePathWatcherImpl* watcher) { in RemoveWatch() argument
314 if (!valid_ || (watch == kInvalidWatch)) in RemoveWatch()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/dbus/
Ddbus_common.c60 DBusWatch *watch, eloop_event_type type) in process_watch() argument
67 dbus_watch_handle(watch, DBUS_WATCH_READABLE); in process_watch()
69 dbus_watch_handle(watch, DBUS_WATCH_WRITABLE); in process_watch()
71 dbus_watch_handle(watch, DBUS_WATCH_ERROR); in process_watch()
100 static dbus_bool_t add_watch(DBusWatch *watch, void *data) in add_watch() argument
106 if (!dbus_watch_get_enabled(watch)) in add_watch()
109 flags = dbus_watch_get_flags(watch); in add_watch()
110 fd = dbus_watch_get_unix_fd(watch); in add_watch()
113 priv, watch); in add_watch()
117 priv, watch); in add_watch()
[all …]
/external/avahi/avahi-qt/
DMakefile.am28 qt-watch.h
33 BUILT_SOURCES += qt-watch.moc3
36 qt-watch.cpp
38 qt-watch.moc3: qt-watch.cpp
50 qt-watch.h
55 BUILT_SOURCES += qt-watch.moc4
58 qt-watch.cpp
60 qt-watch.moc4: qt-watch.cpp
/external/avahi/avahi-common/
DMakefile.am33 watch.h \
35 simple-watch.h \
36 thread-watch.h \
48 watch-test \
49 watch-test-thread \
64 simple-watch.c simple-watch.h \
65 thread-watch.c thread-watch.h \
66 watch.h gccmacro.h \
/external/dbus/bus/
Ddir-watch-kqueue.c49 static DBusWatch *watch = NULL; variable
53 _handle_kqueue_watch (DBusWatch *watch, unsigned int flags, void *data) in _handle_kqueue_watch() argument
75 if (watch != NULL) in _handle_kqueue_watch()
77 _dbus_loop_remove_watch (loop, watch); in _handle_kqueue_watch()
78 _dbus_watch_invalidate (watch); in _handle_kqueue_watch()
79 _dbus_watch_unref (watch); in _handle_kqueue_watch()
80 watch = NULL; in _handle_kqueue_watch()
107 watch = _dbus_watch_new (kq, DBUS_WATCH_READABLE, TRUE, in _init_kqueue()
110 if (watch == NULL) in _init_kqueue()
118 if (!_dbus_loop_add_watch (loop, watch)) in _init_kqueue()
[all …]
Ddir-watch-inotify.c49 static DBusWatch *watch = NULL; variable
201 if (watch != NULL) in _shutdown_inotify()
203 _dbus_loop_remove_watch (loop, watch); in _shutdown_inotify()
204 _dbus_watch_invalidate (watch); in _shutdown_inotify()
205 _dbus_watch_unref (watch); in _shutdown_inotify()
208 watch = NULL; in _shutdown_inotify()
240 watch = _dbus_watch_new (inotify_fd, DBUS_WATCH_READABLE, TRUE, in _init_inotify()
243 if (watch == NULL) in _init_inotify()
249 if (!_dbus_loop_add_watch (loop, watch)) in _init_inotify()
252 _dbus_watch_unref (watch); in _init_inotify()
[all …]
Dmain.c218 handle_reload_watch (DBusWatch *watch, in handle_reload_watch() argument
234 close_reload_pipe (&watch); in handle_reload_watch()
293 DBusWatch *watch; in setup_reload_pipe() local
306 watch = _dbus_watch_new (reload_pipe[RELOAD_READ_END], in setup_reload_pipe()
310 if (watch == NULL) in setup_reload_pipe()
318 if (!_dbus_loop_add_watch (loop, watch)) in setup_reload_pipe()
329 close_reload_pipe (DBusWatch **watch) in close_reload_pipe() argument
331 _dbus_loop_remove_watch (bus_context_get_loop (context), *watch); in close_reload_pipe()
332 _dbus_watch_invalidate (*watch); in close_reload_pipe()
333 _dbus_watch_unref (*watch); in close_reload_pipe()
[all …]
Dtest.c40 add_client_watch (DBusWatch *watch, in add_client_watch() argument
43 return _dbus_loop_add_watch (client_loop, watch); in add_client_watch()
47 remove_client_watch (DBusWatch *watch, in remove_client_watch() argument
50 _dbus_loop_remove_watch (client_loop, watch); in remove_client_watch()
54 toggle_client_watch (DBusWatch *watch, in toggle_client_watch() argument
57 _dbus_loop_toggle_watch (client_loop, watch); in toggle_client_watch()
/external/dnsmasq/src/
Ddbus.c59 struct watch { struct
60 DBusWatch *watch; member
61 struct watch *next; argument
65 static dbus_bool_t add_watch(DBusWatch *watch, void *data) in add_watch() argument
67 struct watch *w; in add_watch()
70 if (w->watch == watch) in add_watch()
73 if (!(w = whine_malloc(sizeof(struct watch)))) in add_watch()
76 w->watch = watch; in add_watch()
84 static void remove_watch(DBusWatch *watch, void *data) in remove_watch() argument
86 struct watch **up, *w; in remove_watch()
[all …]
/external/avahi/avahi-glib/
DMakefile.am28 glib-watch.h \
36 glib-watch-test
40 glib-watch.c glib-watch.h \
48 glib-watch.c glib-watch.h \
49 glib-watch-test.c
/external/dbus/test/
Dtest-utils.c12 add_watch (DBusWatch *watch, in add_watch() argument
17 return _dbus_loop_add_watch (cd->loop, watch); in add_watch()
21 remove_watch (DBusWatch *watch, in remove_watch() argument
26 _dbus_loop_remove_watch (cd->loop, watch); in remove_watch()
30 toggle_watch (DBusWatch *watch, in toggle_watch() argument
35 _dbus_loop_toggle_watch (cd->loop, watch); in toggle_watch()
211 add_server_watch (DBusWatch *watch, in add_server_watch() argument
216 return _dbus_loop_add_watch (context->loop, watch); in add_server_watch()
220 toggle_server_watch (DBusWatch *watch, in toggle_server_watch() argument
225 _dbus_loop_toggle_watch (context->loop, watch); in toggle_server_watch()
[all …]
/external/tlsdate/src/
Ddbus.c66 DBusWatch *watch = arg; in watch_handler() local
67 struct dbus_event_data *data = dbus_watch_get_data (watch); in watch_handler()
70 while (!dbus_watch_handle (watch, flags)) in watch_handler()
83 add_watch (DBusWatch *watch, void *user_data) in add_watch() argument
94 dbus_watch_get_unix_fd (watch), in add_watch()
95 EV_PERSIST|dbus_to_event (dbus_watch_get_flags (watch)), in add_watch()
97 watch); in add_watch()
105 dbus_watch_set_data (watch, data, dbus_free); in add_watch()
106 if (!dbus_watch_get_enabled (watch)) in add_watch()
121 remove_watch (DBusWatch *watch, void *user_data) in remove_watch() argument
[all …]
/external/avahi/avahi-utils/
Dsigint.c38 static AvahiWatch *watch = NULL; variable
116 watch = p->watch_new(p, pipe_fds[0], AVAHI_WATCH_IN, watch_callback, NULL); in sigint_install()
117 assert(watch); in sigint_install()
133 if (watch) { in sigint_uninstall()
139 p->watch_free(watch); in sigint_uninstall()
140 watch = NULL; in sigint_uninstall()
/external/avahi/avahi-daemon/
Dsimple-protocol.c79 AvahiWatch *watch; member
96 AvahiWatch *watch; member
105 static void client_work(AvahiWatch *watch, int fd, AvahiWatchEvent events, void *userdata);
122 c->server->poll_api->watch_free(c->watch); in client_free()
145 c->watch = s->poll_api->watch_new(s->poll_api, fd, AVAHI_WATCH_IN, client_work, c); in client_new()
166 server->poll_api->watch_update(c->watch, AVAHI_WATCH_OUT); in client_output()
385 static void client_work(AvahiWatch *watch, AVAHI_GCC_UNUSED int fd, AvahiWatchEvent events, void *u… in client_work() argument
428 watch, in client_work()
433 static void server_work(AVAHI_GCC_UNUSED AvahiWatch *watch, int fd, AvahiWatchEvent events, void *u… in server_work() argument
461 server->watch = NULL; in simple_protocol_setup()
[all …]
/external/dhcpcd-6.8.2/dbus/
Drpc-dbus.c554 dbus_handle_event(DBusWatch *watch, int flags) in dbus_handle_event() argument
556 dbus_watch_handle((DBusWatch *)watch, flags); in dbus_handle_event()
568 dbus_read_event(void *watch) in dbus_read_event() argument
570 dbus_handle_event((DBusWatch *)watch, DBUS_WATCH_READABLE); in dbus_read_event()
574 dbus_write_event(void *watch) in dbus_write_event() argument
576 dbus_handle_event((DBusWatch *)watch, DBUS_WATCH_WRITABLE); in dbus_write_event()
580 add_watch(DBusWatch *watch, __unused void *data) in add_watch() argument
588 fd = dbus_watch_get_unix_fd(watch); in add_watch()
589 flags = dbus_watch_get_flags(watch); in add_watch()
592 read_arg = watch; in add_watch()
[all …]
/external/avahi/
DMakefile.am89 $(srcdir)/avahi-common/watch.h \
90 $(srcdir)/avahi-common/simple-watch.h \
91 $(srcdir)/avahi-common/thread-watch.h
98 $(srcdir)/avahi-qt/qt-watch.h
102 $(srcdir)/avahi-qt/qt-watch.h
108 $(srcdir)/avahi-glib/glib-watch.h \

123456