session-item: move wp_session_item_set_parent() to the public header

This commit is contained in:
George Kiagiadakis 2020-11-16 10:34:58 +02:00
parent eca28d7b04
commit c2221915c9
4 changed files with 9 additions and 10 deletions

View file

@ -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

View file

@ -13,7 +13,6 @@
#define G_LOG_DOMAIN "wp-sb"
#include "private.h"
#include "session-bin.h"
typedef struct _WpSessionBinPrivate WpSessionBinPrivate;

View file

@ -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)

View file

@ -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