mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-09 07:28:41 +02:00
session-item: move wp_session_item_set_parent() to the public header
This commit is contained in:
parent
eca28d7b04
commit
c2221915c9
4 changed files with 9 additions and 10 deletions
|
|
@ -44,10 +44,6 @@ WpSpaPod * wp_spa_pod_new_control_wrap_const (guint32 offset, guint32 type,
|
|||
const struct spa_pod *pod);
|
||||
const struct spa_pod *wp_spa_pod_get_spa_pod (const WpSpaPod *self);
|
||||
|
||||
/* session item */
|
||||
|
||||
void wp_session_item_set_parent (WpSessionItem *self, WpSessionItem *parent);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
#define G_LOG_DOMAIN "wp-sb"
|
||||
|
||||
#include "private.h"
|
||||
#include "session-bin.h"
|
||||
|
||||
typedef struct _WpSessionBinPrivate WpSessionBinPrivate;
|
||||
|
|
|
|||
|
|
@ -14,12 +14,14 @@
|
|||
#define G_LOG_DOMAIN "wp-si"
|
||||
|
||||
#include "session-item.h"
|
||||
#include "core.h"
|
||||
#include "debug.h"
|
||||
#include "error.h"
|
||||
#include "wpenums.h"
|
||||
#include "private.h"
|
||||
#include "private/impl-endpoint.h"
|
||||
|
||||
#include <spa/utils/defs.h>
|
||||
|
||||
struct _WpSiTransition
|
||||
{
|
||||
WpTransition parent;
|
||||
|
|
@ -450,11 +452,10 @@ wp_session_item_get_parent (WpSessionItem * self)
|
|||
/**
|
||||
* wp_session_item_set_parent:
|
||||
* @self: the session item
|
||||
* @parent: (transfer none): the parent item
|
||||
*
|
||||
* Gets the item's parent, which is the #WpSessionBin this item has been added
|
||||
* to, or NULL if the item does not belong to a session bin.
|
||||
*
|
||||
* Returns: (nullable) (transfer full): the item's parent.
|
||||
* Private API.
|
||||
* Sets the item's parent; used internally by #WpSessionBin.
|
||||
*/
|
||||
void
|
||||
wp_session_item_set_parent (WpSessionItem *self, WpSessionItem *parent)
|
||||
|
|
|
|||
|
|
@ -123,6 +123,9 @@ void wp_session_item_reset (WpSessionItem * self);
|
|||
WP_API
|
||||
WpSessionItem * wp_session_item_get_parent (WpSessionItem * self);
|
||||
|
||||
WP_PRIVATE_API
|
||||
void wp_session_item_set_parent (WpSessionItem *self, WpSessionItem *parent);
|
||||
|
||||
/* flags */
|
||||
|
||||
WP_API
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue