static GSList *adapter_drivers = NULL;
-struct discovery_client {
+struct watch_client {
struct btd_adapter *adapter;
char *owner;
guint watch;
static int compare_discovery_sender(gconstpointer a, gconstpointer b)
{
- const struct discovery_client *client = a;
+ const struct watch_client *client = a;
const char *sender = b;
return g_strcmp0(client->owner, sender);
static void discovery_destroy(void *user_data)
{
- struct discovery_client *client = user_data;
+ struct watch_client *client = user_data;
struct btd_adapter *adapter = client->adapter;
DBG("owner %s", client->owner);
static void discovery_disconnect(DBusConnection *conn, void *user_data)
{
- struct discovery_client *client = user_data;
+ struct watch_client *client = user_data;
struct btd_adapter *adapter = client->adapter;
struct mgmt_cp_stop_discovery cp;
{
struct btd_adapter *adapter = user_data;
const char *sender = dbus_message_get_sender(msg);
- struct discovery_client *client;
+ struct watch_client *client;
GSList *list;
DBG("sender %s", sender);
if (list)
return btd_error_busy(msg);
- client = g_new0(struct discovery_client, 1);
+ client = g_new0(struct watch_client, 1);
client->adapter = adapter;
client->owner = g_strdup(sender);
struct btd_adapter *adapter = user_data;
const char *sender = dbus_message_get_sender(msg);
struct mgmt_cp_stop_discovery cp;
- struct discovery_client *client;
+ struct watch_client *client;
GSList *list;
DBG("sender %s", sender);
cancel_passive_scanning(adapter);
while (adapter->discovery_list) {
- struct discovery_client *client;
+ struct watch_client *client;
client = adapter->discovery_list->data;