core: make the properties on wp_core_new to be (transfer full)

This aligns better with the general design of consuming property
objects on constructors, both in PipeWire and WirePlumber APIs
This commit is contained in:
George Kiagiadakis
2020-05-08 17:12:31 +03:00
parent 29c35ce8aa
commit 11b99527b5
2 changed files with 4 additions and 3 deletions

View File

@@ -339,7 +339,7 @@ wp_core_class_init (WpCoreClass * klass)
/**
* wp_core_new:
* @context: (transfer none) (nullable): the #GMainContext to use for events
* @properties: (transfer none) (nullable): additional properties, which are
* @properties: (transfer full) (nullable): additional properties, which are
* passed to `pw_context_new` and `pw_context_connect`
*
* Returns: (transfer full): a new #WpCore
@@ -347,6 +347,7 @@ wp_core_class_init (WpCoreClass * klass)
WpCore *
wp_core_new (GMainContext *context, WpProperties * properties)
{
g_autoptr (WpProperties) props = properties;
return g_object_new (WP_TYPE_CORE,
"context", context,
"properties", properties,