Lines Matching defs:conn
67 DBusConnection *conn; /* for name listener handling */
197 g_dbus_remove_watch(device->conn, port->listener_id);
208 if (device->conn)
209 dbus_connection_unref(device->conn);
213 static void port_owner_exited(DBusConnection *conn, void *user_data)
256 g_dbus_send_message(device->conn, reply);
355 g_dbus_send_message(device->conn, reply);
356 g_dbus_remove_watch(device->conn, port->listener_id);
416 g_dbus_remove_watch(device->conn, port->listener_id);
418 g_dbus_send_message(device->conn, reply);
469 static DBusMessage *port_connect(DBusConnection *conn,
496 port->listener_id = g_dbus_add_disconnect_watch(conn,
505 g_dbus_remove_watch(conn, port->listener_id);
514 static DBusMessage *port_disconnect(DBusConnection *conn,
539 g_dbus_remove_watch(conn, port->listener_id);
551 static struct serial_device *create_serial_device(DBusConnection *conn,
558 device->conn = dbus_connection_ref(conn);
563 if (!g_dbus_register_interface(conn, path,
579 int port_register(DBusConnection *conn, const char *path, bdaddr_t *src,
587 device = create_serial_device(conn, path, src, dst);
619 g_dbus_unregister_interface(device->conn, path, SERIAL_PORT_INTERFACE);