
This is a cleaner way to interface with the remote pipewire daemon. The WpRemote base class can be subclassed also for interfacing with other daemons (hardware-specific managers, etc)
39 lines
889 B
C
39 lines
889 B
C
/* WirePlumber
|
|
*
|
|
* Copyright © 2019 Collabora Ltd.
|
|
* @author George Kiagiadakis <george.kiagiadakis@collabora.com>
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef __WIREPLUMBER_REMOTE_H__
|
|
#define __WIREPLUMBER_REMOTE_H__
|
|
|
|
#include "core.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef enum {
|
|
WP_REMOTE_STATE_ERROR = -1, /**< remote is in error */
|
|
WP_REMOTE_STATE_UNCONNECTED = 0, /**< not connected */
|
|
WP_REMOTE_STATE_CONNECTING = 1, /**< connecting to remote service */
|
|
WP_REMOTE_STATE_CONNECTED = 2, /**< remote is connected and ready */
|
|
} WpRemoteState;
|
|
|
|
#define WP_TYPE_REMOTE (wp_remote_get_type ())
|
|
G_DECLARE_DERIVABLE_TYPE (WpRemote, wp_remote, WP, REMOTE, GObject)
|
|
|
|
struct _WpRemoteClass
|
|
{
|
|
GObjectClass parent_class;
|
|
|
|
gboolean (*connect) (WpRemote *self);
|
|
};
|
|
|
|
WpCore *wp_remote_get_core (WpRemote *self);
|
|
gboolean wp_remote_connect (WpRemote *self);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif
|