Searched refs:watch (Results 1 - 25 of 54) sorted by relevance

123

/external/dbus/dbus/
H A Ddbus-watch.c2 /* dbus-watch.c DBusWatch implementation
26 #include "dbus-watch.h"
44 unsigned int flags; /**< Conditions to watch. */
48 DBusFreeFunction free_handler_data_function; /**< Free the watch handler data. */
56 _dbus_watch_get_enabled (DBusWatch *watch) argument
58 return watch->enabled;
66 * @param flags the conditions to watch for on the descriptor.
81 DBusWatch *watch; local
87 watch = dbus_new0 (DBusWatch, 1);
88 if (watch
110 _dbus_watch_ref(DBusWatch *watch) argument
124 _dbus_watch_unref(DBusWatch *watch) argument
152 _dbus_watch_invalidate(DBusWatch *watch) argument
168 _dbus_watch_sanitize_condition(DBusWatch *watch, unsigned int *condition) argument
358 _dbus_watch_list_add_watch(DBusWatchList *watch_list, DBusWatch *watch) argument
391 _dbus_watch_list_remove_watch(DBusWatchList *watch_list, DBusWatch *watch) argument
418 _dbus_watch_list_toggle_watch(DBusWatchList *watch_list, DBusWatch *watch, dbus_bool_t enabled) argument
452 _dbus_watch_set_handler(DBusWatch *watch, DBusWatchHandler handler, void *data, DBusFreeFunction free_data_function) argument
497 dbus_watch_get_fd(DBusWatch *watch) argument
516 dbus_watch_get_unix_fd(DBusWatch *watch) argument
543 dbus_watch_get_socket(DBusWatch *watch) argument
562 dbus_watch_get_flags(DBusWatch *watch) argument
577 dbus_watch_get_data(DBusWatch *watch) argument
594 dbus_watch_set_data(DBusWatch *watch, void *data, DBusFreeFunction free_data_function) argument
617 dbus_watch_get_enabled(DBusWatch *watch) argument
647 dbus_watch_handle(DBusWatch *watch, unsigned int flags) argument
[all...]
H A Ddbus-watch.h2 /* dbus-watch.h DBusWatch internal interfaces
40 /** function to run when the watch is handled */
41 typedef dbus_bool_t (* DBusWatchHandler) (DBusWatch *watch,
51 DBusWatch* _dbus_watch_ref (DBusWatch *watch);
52 void _dbus_watch_unref (DBusWatch *watch);
53 void _dbus_watch_invalidate (DBusWatch *watch);
54 void _dbus_watch_sanitize_condition (DBusWatch *watch,
56 void _dbus_watch_set_handler (DBusWatch *watch,
71 DBusWatch *watch);
73 DBusWatch *watch);
[all...]
H A Ddbus-server-socket.c55 DBusWatch **watch; /**< File descriptor watch. */ member in struct:DBusServerSocket
69 if (socket_server->watch[i])
71 _dbus_watch_unref (socket_server->watch[i]);
72 socket_server->watch[i] = NULL;
76 dbus_free (socket_server->watch);
160 socket_handle_watch (DBusWatch *watch, argument
177 if (socket_server->watch[i] == watch)
190 listen_fd = dbus_watch_get_socket (watch);
303 DBusWatch *watch; local
[all...]
H A Ddbus-mainloop.h33 typedef dbus_bool_t (* DBusWatchFunction) (DBusWatch *watch,
43 DBusWatch *watch,
48 DBusWatch *watch,
H A Ddbus-connection-internal.h60 DBusWatch *watch);
62 DBusWatch *watch);
64 DBusWatch *watch,
66 dbus_bool_t _dbus_connection_handle_watch (DBusWatch *watch,
H A Ddbus-server-protected.h31 #include <dbus/dbus-watch.h>
97 DBusWatch *watch);
99 DBusWatch *watch);
101 DBusWatch *watch,
H A Ddbus-connection.h42 /* documented in dbus-watch.c */
62 DBUS_WATCH_ERROR = 1 << 2, /**< As in POLLERR (can't watch for
67 DBUS_WATCH_HANGUP = 1 << 3 /**< As in POLLHUP (can't watch for
85 /** Called when libdbus needs a new watch to be monitored by the main
87 * watch. Set by dbus_connection_set_watch_functions() or
90 typedef dbus_bool_t (* DBusAddWatchFunction) (DBusWatch *watch,
96 typedef void (* DBusWatchToggledFunction) (DBusWatch *watch,
98 /** Called when libdbus no longer needs a watch to be monitored by the
102 typedef void (* DBusRemoveWatchFunction) (DBusWatch *watch,
106 * watch
[all...]
H A Ddbus-mainloop.c84 DBusWatch *watch; member in struct:__anon4461
85 /* last watch handle failed due to OOM */
102 watch_callback_new (DBusWatch *watch, argument
113 cb->watch = watch;
264 DBusWatch *watch,
271 wcb = watch_callback_new (watch, function, data, free_data_func);
287 DBusWatch *watch,
300 WATCH_CALLBACK (this)->watch == watch
263 _dbus_loop_add_watch(DBusLoop *loop, DBusWatch *watch, DBusWatchFunction function, void *data, DBusFreeFunction free_data_func) argument
286 _dbus_loop_remove_watch(DBusLoop *loop, DBusWatch *watch, DBusWatchFunction function, void *data) argument
[all...]
H A Ddbus-spawn.h30 #include <dbus/dbus-watch.h>
H A Ddbus-server.c199 DBusWatch *watch);
202 DBusWatch *watch);
205 DBusWatch *watch,
210 DBusWatch *watch,
234 retval = (* add_function) (watches, watch);
238 (* remove_function) (watches, watch);
243 (* toggle_function) (watches, watch, enabled);
257 * Adds a watch for this server, chaining out to application-provided
258 * watch handlers.
261 * @param watch th
209 protected_change_watch(DBusServer *server, DBusWatch *watch, DBusWatchAddFunction add_function, DBusWatchRemoveFunction remove_function, DBusWatchToggleFunction toggle_function, dbus_bool_t enabled) argument
264 _dbus_server_add_watch(DBusServer *server, DBusWatch *watch) argument
280 _dbus_server_remove_watch(DBusServer *server, DBusWatch *watch) argument
300 _dbus_server_toggle_watch(DBusServer *server, DBusWatch *watch, dbus_bool_t enabled) argument
[all...]
/external/chromium/base/win/
H A Dobject_watcher.cc50 Watch* watch = new Watch; local
51 watch->watcher = this;
52 watch->object = object;
53 watch->origin_loop = MessageLoop::current();
54 watch->delegate = delegate;
55 watch->did_signal = false;
61 if (!RegisterWaitForSingleObject(&watch->wait_object, object, DoneWaiting,
62 watch, INFINITE, wait_flags)) {
64 delete watch;
68 watch_ = watch;
122 Watch* watch = static_cast<Watch*>(param); local
[all...]
/external/v8/test/mjsunit/regress/
H A Dregress-88858.js40 o.watch(0, (arguments-1901)('o'));
41 p.watch(0, make_watcher('p'));
/external/dbus/bus/
H A Ddir-watch-kqueue.c2 /* dir-watch-kqueue.c OS specific directory change notification for message bus
37 #include <dbus/dbus-watch.h>
41 #include "dir-watch.h"
49 static DBusWatch *watch = NULL; variable
53 _kqueue_watch_callback (DBusWatch *watch, unsigned int condition, void *data) argument
55 return dbus_watch_handle (watch, condition);
59 _handle_kqueue_watch (DBusWatch *watch, unsigned int flags, void *data) argument
81 if (watch != NULL)
83 _dbus_loop_remove_watch (loop, watch, _kqueue_watch_callback, NULL);
84 _dbus_watch_unref (watch);
[all...]
H A Ddir-watch-inotify.c2 /* dir-watch-inotify.c OS specific directory change notification for message bus
37 #include <dbus/dbus-watch.h>
38 #include "dir-watch.h"
49 static DBusWatch *watch = NULL; variable
53 _inotify_watch_callback (DBusWatch *watch, unsigned int condition, void *data) argument
55 return dbus_watch_handle (watch, condition);
154 /* FIXME - less lame error handling for failing to add a watch; we may need to sleep. */
176 * watch. (In reality though, the whole OOM handling in dbus is stupid
209 if (watch != NULL)
211 _dbus_loop_remove_watch (loop, watch, _inotify_watch_callbac
[all...]
H A Dmain.c28 #include <dbus/dbus-watch.h>
167 handle_reload_watch (DBusWatch *watch, argument
204 reload_watch_callback (DBusWatch *watch, argument
208 return dbus_watch_handle (watch, condition);
215 DBusWatch *watch; local
228 watch = _dbus_watch_new (reload_pipe[RELOAD_READ_END],
232 if (watch == NULL)
234 _dbus_warn ("Unable to create reload watch: %s\n",
240 if (!_dbus_loop_add_watch (loop, watch, reload_watch_callback,
243 _dbus_warn ("Unable to add reload watch t
[all...]
H A Dtest.c32 /* The "debug client" watch/timeout handlers don't dispatch messages,
40 client_watch_callback (DBusWatch *watch, argument
46 * watch handler is fixed.
49 return dbus_watch_handle (watch, condition);
53 add_client_watch (DBusWatch *watch, argument
59 watch, client_watch_callback, connection,
64 remove_client_watch (DBusWatch *watch, argument
70 watch, client_watch_callback, connection);
/external/wpa_supplicant_8/wpa_supplicant/dbus/
H A Ddbus_common.c65 DBusWatch *watch, eloop_event_type type)
72 dbus_watch_handle(watch, DBUS_WATCH_READABLE);
74 dbus_watch_handle(watch, DBUS_WATCH_WRITABLE);
76 dbus_watch_handle(watch, DBUS_WATCH_ERROR);
105 static dbus_bool_t add_watch(DBusWatch *watch, void *data) argument
111 if (!dbus_watch_get_enabled(watch))
114 flags = dbus_watch_get_flags(watch);
115 fd = dbus_watch_get_unix_fd(watch);
118 priv, watch);
122 priv, watch);
64 process_watch(struct wpas_dbus_priv *priv, DBusWatch *watch, eloop_event_type type) argument
135 remove_watch(DBusWatch *watch, void *data) argument
154 watch_toggled(DBusWatch *watch, void *data) argument
[all...]
/external/dnsmasq/src/
H A Ddbus.c59 struct watch { struct
60 DBusWatch *watch; member in struct:watch
61 struct watch *next;
65 static dbus_bool_t add_watch(DBusWatch *watch, void *data) argument
67 struct watch *w;
70 if (w->watch == watch)
73 if (!(w = whine_malloc(sizeof(struct watch))))
76 w->watch = watch;
84 remove_watch(DBusWatch *watch, void *data) argument
[all...]
/external/bluetooth/bluez/gdbus/
H A Dmainloop.c50 DBusWatch *watch; member in struct:watch_info
107 dbus_watch_handle(info->watch, flags);
131 static dbus_bool_t add_watch(DBusWatch *watch, void *data) argument
140 if (!dbus_watch_get_enabled(watch))
145 fd = dbus_watch_get_unix_fd(watch);
148 info->watch = watch;
151 dbus_watch_set_data(watch, info, watch_info_free);
153 flags = dbus_watch_get_flags(watch);
165 static void remove_watch(DBusWatch *watch, voi argument
174 watch_toggled(DBusWatch *watch, void *data) argument
[all...]
H A DAndroid.mk5 mainloop.c object.c watch.c polkit.c
/external/bluetooth/glib/glib/
H A Dgiounix.c125 GIOUnixWatch *watch = (GIOUnixWatch *)source; local
126 GIOCondition buffer_condition = g_io_channel_get_buffer_condition (watch->channel);
130 /* Only return TRUE here if _all_ bits in watch->condition will be set
132 return ((watch->condition & buffer_condition) == watch->condition);
138 GIOUnixWatch *watch = (GIOUnixWatch *)source; local
139 GIOCondition buffer_condition = g_io_channel_get_buffer_condition (watch->channel);
140 GIOCondition poll_condition = watch->pollfd.revents;
142 return ((poll_condition | buffer_condition) & watch->condition);
152 GIOUnixWatch *watch local
170 GIOUnixWatch *watch = (GIOUnixWatch *)source; local
343 GIOUnixWatch *watch; local
[all...]
/external/dbus/test/
H A Dtest-utils.c12 connection_watch_callback (DBusWatch *watch, argument
16 return dbus_watch_handle (watch, condition);
20 add_watch (DBusWatch *watch, argument
26 watch,
32 remove_watch (DBusWatch *watch, argument
38 watch, connection_watch_callback, cd);
180 _dbus_assert_not_reached ("setting watch functions to NULL failed");
229 server_watch_callback (DBusWatch *watch, argument
235 * watch handler is fixed.
238 return dbus_watch_handle (watch, conditio
242 add_server_watch(DBusWatch *watch, void *data) argument
253 remove_server_watch(DBusWatch *watch, void *data) argument
[all...]
/external/kernel-headers/original/linux/
H A Dinotify.h19 __s32 wd; /* watch descriptor */
20 __u32 mask; /* watch mask */
26 /* the following are legal, implemented events that user-space can watch for */
40 /* the following are legal events. they are sent as needed to any watch */
50 #define IN_ONLYDIR 0x01000000 /* only watch the path if it is a directory */
52 #define IN_MASK_ADD 0x20000000 /* add to the mask of an already existing watch */
72 * struct inotify_watch - represents a watch request on a specific inode
76 * ih, inode, and wd are never written to once the watch is created.
88 __s32 wd; /* watch descriptor */
89 __u32 mask; /* event mask for this watch */
172 inotify_init_watch(struct inotify_watch *watch) argument
192 inotify_add_watch(struct inotify_handle *ih, struct inotify_watch *watch, struct inode *inode, __u32 mask) argument
199 inotify_rm_watch(struct inotify_handle *ih, struct inotify_watch *watch) argument
210 inotify_remove_watch_locked(struct inotify_handle *ih, struct inotify_watch *watch) argument
215 get_inotify_watch(struct inotify_watch *watch) argument
219 put_inotify_watch(struct inotify_watch *watch) argument
[all...]
/external/wpa_supplicant_6/wpa_supplicant/
H A Dctrl_iface_dbus.c43 DBusWatch *watch, eloop_event_type type)
50 dbus_watch_handle(watch, DBUS_WATCH_READABLE);
52 dbus_watch_handle(watch, DBUS_WATCH_WRITABLE);
54 dbus_watch_handle(watch, DBUS_WATCH_ERROR);
86 DBusWatch *watch)
91 if (!dbus_watch_get_enabled(watch))
94 flags = dbus_watch_get_flags(watch);
95 fd = dbus_watch_get_unix_fd(watch);
98 iface, watch);
102 iface, watch);
42 process_watch(struct ctrl_iface_dbus_priv *iface, DBusWatch *watch, eloop_event_type type) argument
85 connection_setup_add_watch(struct ctrl_iface_dbus_priv *iface, DBusWatch *watch) argument
113 connection_setup_remove_watch(struct ctrl_iface_dbus_priv *iface, DBusWatch *watch) argument
133 add_watch(DBusWatch *watch, void *data) argument
140 remove_watch(DBusWatch *watch, void *data) argument
146 watch_toggled(DBusWatch *watch, void *data) argument
[all...]
/external/chromium/base/files/
H A Dfile_path_watcher_linux.cc51 // Remove |watch|. Returns true on success.
52 bool RemoveWatch(Watch watch, FilePathWatcherImpl* watcher);
91 // Called for each event coming from the watch. |fired_watch| identifies the
92 // watch that fired, |child| indicates what has changed, and is relative to
102 // Returns true if watch for |path| has been added successfully.
106 // Cancel the watch. This unregisters the instance with InotifyReader.
121 // WatchEntry instance holds the watch descriptor for a component and the
124 WatchEntry(InotifyReader::Watch watch, const FilePath::StringType& subdir) argument
125 : watch_(watch),
133 // Reconfigure to watch fo
257 Watch watch = inotify_add_watch(inotify_fd_, path.value().c_str(), local
270 RemoveWatch(Watch watch, FilePathWatcherImpl* watcher) argument
[all...]

Completed in 320 milliseconds

123