mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-06 00:40:34 +00:00
deamon: remove obsolete method
This commit is contained in:
parent
12301b6ef1
commit
619c1f83d0
|
@ -132,15 +132,21 @@ handle_connect_client (PinosDaemon1 *interface,
|
|||
gpointer user_data)
|
||||
{
|
||||
PinosDaemon *daemon = user_data;
|
||||
PinosDaemonPrivate *priv = daemon->priv;
|
||||
PinosClient *client;
|
||||
const gchar *sender, *object_path;
|
||||
SenderData *data;
|
||||
|
||||
sender = g_dbus_method_invocation_get_sender (invocation);
|
||||
|
||||
client = pinos_client_new (daemon, sender, PINOS_DBUS_OBJECT_PREFIX, arg_properties);
|
||||
g_signal_connect (client, "disconnect", (GCallback) handle_disconnect_client, daemon);
|
||||
|
||||
pinos_daemon_track_object (daemon, sender, G_OBJECT (client));
|
||||
data = g_hash_table_lookup (priv->senders, sender);
|
||||
if (data == NULL)
|
||||
data = sender_data_new (daemon, sender);
|
||||
|
||||
data->objects = g_list_prepend (data->objects, client);
|
||||
|
||||
object_path = pinos_client_get_object_path (client);
|
||||
g_dbus_method_invocation_return_value (invocation,
|
||||
|
@ -305,27 +311,6 @@ pinos_daemon_unexport (PinosDaemon *daemon,
|
|||
g_dbus_object_manager_server_unexport (daemon->priv->server_manager, object_path);
|
||||
}
|
||||
|
||||
void
|
||||
pinos_daemon_track_object (PinosDaemon *daemon,
|
||||
const gchar *sender,
|
||||
GObject *object)
|
||||
{
|
||||
PinosDaemonPrivate *priv;
|
||||
SenderData *data;
|
||||
|
||||
g_return_if_fail (PINOS_IS_DAEMON (daemon));
|
||||
g_return_if_fail (sender != NULL);
|
||||
g_return_if_fail (G_IS_OBJECT (object));
|
||||
|
||||
priv = daemon->priv;
|
||||
|
||||
data = g_hash_table_lookup (priv->senders, sender);
|
||||
if (data == NULL)
|
||||
data = sender_data_new (daemon, sender);
|
||||
|
||||
data->objects = g_list_prepend (data->objects, object);
|
||||
}
|
||||
|
||||
void
|
||||
pinos_daemon_add_source (PinosDaemon *daemon,
|
||||
PinosSource *source)
|
||||
|
|
|
@ -71,10 +71,6 @@ void pinos_daemon_stop (PinosDaemon *daemon);
|
|||
gchar * pinos_daemon_export_uniquely (PinosDaemon *daemon, GDBusObjectSkeleton *skel);
|
||||
void pinos_daemon_unexport (PinosDaemon *daemon, const gchar *name);
|
||||
|
||||
void pinos_daemon_track_object (PinosDaemon *daemon,
|
||||
const gchar *sender,
|
||||
GObject *object);
|
||||
|
||||
void pinos_daemon_add_source (PinosDaemon *daemon, PinosSource *source);
|
||||
void pinos_daemon_remove_source (PinosDaemon *daemon, PinosSource *source);
|
||||
PinosSource * pinos_daemon_find_source (PinosDaemon *daemon,
|
||||
|
|
Loading…
Reference in a new issue