Lines Matching full:watcher
103 struct watcher {
126 struct watcher *watcher = user_data;
128 g_free(watcher->path);
129 g_free(watcher->name);
130 g_free(watcher);
139 struct watcher *watcher = l->data;
140 g_dbus_remove_watch(prim->gatt->conn, watcher->id);
180 const struct watcher *watcher = a;
181 const struct watcher *match = b;
184 ret = g_strcmp0(watcher->name, match->name);
188 return g_strcmp0(watcher->path, match->path);
224 struct watcher *watcher = user_data;
225 struct primary *prim = watcher->prim;
228 DBG("%s watcher %s exited", prim->path, watcher->name);
230 prim->watchers = g_slist_remove(prim->watchers, watcher);
250 struct watcher *w = data;
256 "org.bluez.Watcher", "ValueChanged");
416 struct watcher *watcher;
430 watcher = g_new0(struct watcher, 1);
431 watcher->name = g_strdup(sender);
432 watcher->prim = prim;
433 watcher->path = g_strdup(path);
434 watcher->id = g_dbus_add_disconnect_watch(conn, sender, watcher_exit,
435 watcher, watcher_free);
437 prim->watchers = g_slist_append(prim->watchers, watcher);
447 struct watcher *watcher, *match;
455 match = g_new0(struct watcher, 1);
463 watcher = l->data;
464 g_dbus_remove_watch(conn, watcher->id);
465 prim->watchers = g_slist_remove(prim->watchers, watcher);
466 watcher_free(watcher);