mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-18 07:00:06 -05:00
Try to use source_path consistently
This commit is contained in:
parent
1e4e4ef185
commit
f268cdfda6
8 changed files with 28 additions and 28 deletions
|
|
@ -34,7 +34,7 @@ fill_info (PinosSourceInfo *info, GDBusProxy *proxy)
|
|||
|
||||
info->id = proxy;
|
||||
|
||||
info->path = g_dbus_proxy_get_object_path (proxy);
|
||||
info->source_path = g_dbus_proxy_get_object_path (proxy);
|
||||
|
||||
if ((variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Name"))) {
|
||||
info->name = g_variant_get_string (variant, NULL);
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ typedef enum {
|
|||
/**
|
||||
* PinosSourceInfo:
|
||||
* @id: generic id of the source
|
||||
* @path: the unique path of the source, suitable for connecting
|
||||
* @source_path: the unique path of the source, suitable for connecting
|
||||
* @name: name the source, suitable for display
|
||||
* @properties: the properties of the source
|
||||
* @state: the current state of the source
|
||||
|
|
@ -61,7 +61,7 @@ typedef enum {
|
|||
*/
|
||||
typedef struct {
|
||||
gpointer id;
|
||||
const char *path;
|
||||
const char *source_path;
|
||||
const char *name;
|
||||
GVariant *properties;
|
||||
PinosSourceState state;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ struct _PinosStreamPrivate
|
|||
PinosStreamState state;
|
||||
GError *error;
|
||||
|
||||
gchar *target;
|
||||
gchar *source_path;
|
||||
GBytes *accepted_formats;
|
||||
gboolean provide;
|
||||
|
||||
|
|
@ -226,7 +226,7 @@ pinos_stream_finalize (GObject * object)
|
|||
if (priv->format)
|
||||
g_bytes_unref (priv->format);
|
||||
|
||||
g_free (priv->target);
|
||||
g_free (priv->source_path);
|
||||
if (priv->accepted_formats)
|
||||
g_bytes_unref (priv->accepted_formats);
|
||||
|
||||
|
|
@ -530,7 +530,7 @@ do_connect_capture (PinosStream *stream)
|
|||
g_dbus_proxy_call (context->priv->client,
|
||||
"CreateSourceOutput",
|
||||
g_variant_new ("(ss)",
|
||||
(priv->target ? priv->target : ""),
|
||||
(priv->source_path ? priv->source_path : ""),
|
||||
g_bytes_get_data (priv->accepted_formats, NULL)),
|
||||
G_DBUS_CALL_FLAGS_NONE,
|
||||
-1,
|
||||
|
|
@ -544,17 +544,17 @@ do_connect_capture (PinosStream *stream)
|
|||
/**
|
||||
* pinos_stream_connect_capture:
|
||||
* @stream: a #PinosStream
|
||||
* @path: the source path to connect to
|
||||
* @source_path: the source path to connect to
|
||||
* @flags: a #PinosStreamFlags
|
||||
* @spec: a #GVariant
|
||||
*
|
||||
* Connect @stream for capturing from @path.
|
||||
* Connect @stream for capturing from @source_path.
|
||||
*
|
||||
* Returns: %TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
pinos_stream_connect_capture (PinosStream *stream,
|
||||
const gchar *path,
|
||||
const gchar *source_path,
|
||||
PinosStreamFlags flags,
|
||||
GBytes *accepted_formats)
|
||||
{
|
||||
|
|
@ -568,8 +568,8 @@ pinos_stream_connect_capture (PinosStream *stream,
|
|||
context = priv->context;
|
||||
g_return_val_if_fail (pinos_context_get_state (context) == PINOS_CONTEXT_STATE_READY, FALSE);
|
||||
|
||||
g_free (priv->target);
|
||||
priv->target = g_strdup (path);
|
||||
g_free (priv->source_path);
|
||||
priv->source_path = g_strdup (source_path);
|
||||
if (priv->accepted_formats)
|
||||
g_bytes_unref (priv->accepted_formats);
|
||||
priv->accepted_formats = g_bytes_ref (accepted_formats);
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ PinosStreamState pinos_stream_get_state (PinosStream *stream);
|
|||
const GError * pinos_stream_get_error (PinosStream *stream);
|
||||
|
||||
gboolean pinos_stream_connect_capture (PinosStream *stream,
|
||||
const gchar *path,
|
||||
const gchar *source_path,
|
||||
PinosStreamFlags flags,
|
||||
GBytes *accepted_formats);
|
||||
gboolean pinos_stream_connect_provide (PinosStream *stream,
|
||||
|
|
|
|||
|
|
@ -635,7 +635,7 @@ pinos_subscribe_class_init (PinosSubscribeClass * klass)
|
|||
* @subscribe: The #PinosSubscribe emitting the signal.
|
||||
* @event: A #PinosSubscriptionEvent
|
||||
* @flags: #PinosSubscriptionFlags indicating the object
|
||||
* @path: the object path
|
||||
* @id: the unique and opaque object id
|
||||
*
|
||||
* Notify about a new object that was added/removed/modified.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue