HomeSort by relevance Sort by last modified time
    Searched refs:watch (Results 1 - 25 of 50) sorted by null

1 2

  /external/dbus/dbus/
dbus-watch.c 2 /* dbus-watch.c DBusWatch implementation
25 #include "dbus-watch.h"
43 unsigned int flags; /**< Conditions to watch. */
45 DBusWatchHandler handler; /**< Watch handler. */
46 void *handler_data; /**< Watch handler data. */
47 DBusFreeFunction free_handler_data_function; /**< Free the watch handler data. */
59 * @param flags the conditions to watch for on the descriptor.
74 DBusWatch *watch; local
80 watch = dbus_new0 (DBusWatch, 1);
81 if (watch == NULL
    [all...]
dbus-watch.h 2 /* 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...]
dbus-server-socket.c 51 DBusWatch *watch; /**< File descriptor watch. */ member in struct:DBusServerSocket
62 if (socket_server->watch)
64 _dbus_watch_unref (socket_server->watch);
65 socket_server->watch = NULL;
146 socket_handle_watch (DBusWatch *watch,
155 _dbus_assert (watch == socket_server->watch);
164 listen_fd = dbus_watch_get_fd (watch);
205 if (socket_server->watch)
250 DBusWatch *watch; local
    [all...]
dbus-mainloop.h 33 typedef dbus_bool_t (* DBusWatchFunction) (DBusWatch *watch,
43 DBusWatch *watch,
48 DBusWatch *watch,
dbus-connection-internal.h 60 DBusWatch *watch);
62 DBusWatch *watch);
64 DBusWatch *watch,
66 dbus_bool_t _dbus_connection_handle_watch (DBusWatch *watch,
dbus-server-protected.h 32 #include <dbus/dbus-watch.h>
98 DBusWatch *watch);
100 DBusWatch *watch);
102 DBusWatch *watch,
dbus-connection.h 42 /* 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. Set by dbus_connection_set_timeout_functions() o
    [all...]
dbus-mainloop.c 83 DBusWatch *watch; member in struct:__anon3202
84 /* last watch handle failed due to OOM */
101 watch_callback_new (DBusWatch *watch,
112 cb->watch = watch;
263 DBusWatch *watch,
270 wcb = watch_callback_new (watch, function, data, free_data_func);
286 DBusWatch *watch,
299 WATCH_CALLBACK (this)->watch == watch &
    [all...]
dbus-spawn.h 30 #include <dbus/dbus-watch.h>
dbus-server.c 198 DBusWatch *watch);
201 DBusWatch *watch);
204 DBusWatch *watch,
209 DBusWatch *watch,
233 retval = (* add_function) (watches, watch);
237 (* remove_function) (watches, watch);
242 (* toggle_function) (watches, watch, enabled);
256 * Adds a watch for this server, chaining out to application-provided
257 * watch handlers.
260 * @param watch the watch to add
    [all...]
  /external/chromium/base/
object_watcher.cc 13 struct ObjectWatcher::Watch : public Task {
49 Watch* watch = new Watch; local
50 watch->watcher = this;
51 watch->object = object;
52 watch->origin_loop = MessageLoop::current();
53 watch->delegate = delegate;
54 watch->did_signal = false;
60 if (!RegisterWaitForSingleObject(&watch->wait_object, object, DoneWaiting
121 Watch* watch = static_cast<Watch*>(param); local
    [all...]
directory_watcher_inotify.cc 39 typedef int Watch; // Watch descriptor used by AddWatch and RemoveWatch.
40 static const Watch kInvalidWatch = -1;
42 // Watch |path| for changes. |watcher| will be notified on each change.
44 Watch AddWatch(const FilePath& path, DirectoryWatcherImpl* watcher);
46 // Remove |watch|. Returns true on success.
47 bool RemoveWatch(Watch watch, DirectoryWatcherImpl* watcher);
61 base::hash_map<Watch, WatcherSet> watchers_;
63 // For each watch we also want to know the path it's watching
296 Watch watch = inotify_add_watch(inotify_fd_, path.value().c_str(), local
418 InotifyReader::Watch watch = local
    [all...]
  /external/dbus/bus/
dir-watch-kqueue.c 2 /* dir-watch-kqueue.c OS specific directory change notification for message bus
33 #include <dbus/dbus-watch.h>
36 #include "dir-watch.h"
43 static DBusWatch *watch = NULL; variable
47 _kqueue_watch_callback (DBusWatch *watch, unsigned int condition, void *data)
49 return dbus_watch_handle (watch, condition);
53 _handle_kqueue_watch (DBusWatch *watch, unsigned int flags, void *data)
75 if (watch != NULL)
77 _dbus_loop_remove_watch (loop, watch, _kqueue_watch_callback, NULL);
78 _dbus_watch_unref (watch);
    [all...]
main.c 26 #include <dbus/dbus-watch.h>
146 handle_reload_watch (DBusWatch *watch,
172 reload_watch_callback (DBusWatch *watch,
176 return dbus_watch_handle (watch, condition);
183 DBusWatch *watch; local
199 watch = _dbus_watch_new (reload_pipe[RELOAD_READ_END],
203 if (watch == NULL)
205 _dbus_warn ("Unable to create reload watch: %s\n",
211 if (!_dbus_loop_add_watch (loop, watch, reload_watch_callback,
214 _dbus_warn ("Unable to add reload watch to main loop: %s\n"
    [all...]
Android.mk 24 dir-watch-default.c \
test.c 31 /* The "debug client" watch/timeout handlers don't dispatch messages,
39 client_watch_callback (DBusWatch *watch,
45 * watch handler is fixed.
48 return dbus_watch_handle (watch, condition);
52 add_client_watch (DBusWatch *watch,
58 watch, client_watch_callback, connection,
63 remove_client_watch (DBusWatch *watch,
69 watch, client_watch_callback, connection);
  /frameworks/base/opengl/tests/gralloc/
gralloc.cpp 65 StopWatch watch("memset");
71 StopWatch watch("memcpy baseline");
77 StopWatch watch("memcpy from gralloc");
83 StopWatch watch("memcpy into gralloc");
90 StopWatch watch("lamecpy baseline");
96 StopWatch watch("lamecpy from gralloc");
102 StopWatch watch("lamecpy into gralloc");
  /external/bluetooth/bluez/gdbus/
Android.mk 5 mainloop.c object.c watch.c
mainloop.c 50 DBusWatch *watch; member in struct:watch_info
106 dbus_watch_handle(info->watch, flags);
127 static dbus_bool_t add_watch(DBusWatch *watch, void *data)
136 if (!dbus_watch_get_enabled(watch))
141 fd = dbus_watch_get_unix_fd(watch);
144 info->watch = watch;
147 dbus_watch_set_data(watch, info, watch_info_free);
149 flags = dbus_watch_get_flags(watch);
161 static void remove_watch(DBusWatch *watch, void *data
    [all...]
  /external/dnsmasq/src/
dbus.c 59 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)
67 struct watch *w;
70 if (w->watch == watch)
73 if (!(w = whine_malloc(sizeof(struct watch))))
76 w->watch = watch;
    [all...]
  /external/bluetooth/glib/glib/
giounix.c 125 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 = (GIOUnixWatch *)source local
170 GIOUnixWatch *watch = (GIOUnixWatch *)source; local
343 GIOUnixWatch *watch; local
    [all...]
  /external/dbus/test/
test-utils.c 11 connection_watch_callback (DBusWatch *watch,
15 return dbus_watch_handle (watch, condition);
19 add_watch (DBusWatch *watch,
25 watch,
31 remove_watch (DBusWatch *watch,
37 watch, connection_watch_callback, cd);
179 _dbus_assert_not_reached ("setting watch functions to NULL failed");
  /external/kernel-headers/original/linux/
inotify.h 19 __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 */
    [all...]
  /external/wpa_supplicant/
ctrl_iface_dbus.c 51 DBusWatch *watch, eloop_event_type type)
58 dbus_watch_handle(watch, DBUS_WATCH_READABLE);
60 dbus_watch_handle(watch, DBUS_WATCH_WRITABLE);
62 dbus_watch_handle(watch, DBUS_WATCH_ERROR);
94 DBusWatch *watch)
99 if (!dbus_watch_get_enabled(watch))
102 flags = dbus_watch_get_flags(watch);
103 fd = dbus_watch_get_unix_fd(watch);
106 iface, watch);
110 iface, watch);
    [all...]
  /external/wpa_supplicant_6/wpa_supplicant/
ctrl_iface_dbus.c 43 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);
    [all...]

Completed in 251 milliseconds

1 2