2019-07-05 10:22:28 -04:00
|
|
|
/* WirePlumber
|
|
|
|
|
*
|
|
|
|
|
* Copyright © 2019 Collabora Ltd.
|
|
|
|
|
* @author Julian Bouzas <julian.bouzas@collabora.com>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*/
|
|
|
|
|
|
2020-01-22 18:54:45 +02:00
|
|
|
#ifndef __WIREPLUMBER_DEVICE_H__
|
|
|
|
|
#define __WIREPLUMBER_DEVICE_H__
|
2019-07-05 10:22:28 -04:00
|
|
|
|
|
|
|
|
#include "proxy.h"
|
|
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
2020-01-30 17:41:25 +02:00
|
|
|
/* WpDevice */
|
|
|
|
|
|
2020-02-17 15:39:19 +02:00
|
|
|
/**
|
|
|
|
|
* WP_TYPE_DEVICE:
|
|
|
|
|
*
|
|
|
|
|
* The #WpDevice #GType
|
|
|
|
|
*/
|
2020-01-22 18:54:45 +02:00
|
|
|
#define WP_TYPE_DEVICE (wp_device_get_type ())
|
2020-01-16 18:50:07 +02:00
|
|
|
WP_API
|
2020-01-22 18:54:45 +02:00
|
|
|
G_DECLARE_FINAL_TYPE (WpDevice, wp_device, WP, DEVICE, WpProxy)
|
2019-07-05 10:22:28 -04:00
|
|
|
|
2020-01-30 17:41:25 +02:00
|
|
|
WP_API
|
|
|
|
|
WpDevice * wp_device_new_from_factory (WpCore * core,
|
|
|
|
|
const gchar * factory_name, WpProperties * properties);
|
|
|
|
|
|
|
|
|
|
/* WpSpaDevice */
|
|
|
|
|
|
2020-02-17 15:39:19 +02:00
|
|
|
/**
|
|
|
|
|
* WP_TYPE_SPA_DEVICE:
|
|
|
|
|
*
|
|
|
|
|
* The #WpSpaDevice #GType
|
|
|
|
|
*/
|
2020-01-30 17:41:25 +02:00
|
|
|
#define WP_TYPE_SPA_DEVICE (wp_spa_device_get_type ())
|
|
|
|
|
WP_API
|
2020-06-10 15:34:34 -04:00
|
|
|
G_DECLARE_FINAL_TYPE (WpSpaDevice, wp_spa_device, WP, SPA_DEVICE, GObject)
|
|
|
|
|
|
|
|
|
|
WP_API
|
|
|
|
|
WpSpaDevice * wp_spa_device_new_wrap (WpCore * core,
|
2020-06-15 11:10:39 +03:00
|
|
|
gpointer spa_device_handle, WpProperties * properties);
|
2020-01-30 17:41:25 +02:00
|
|
|
|
|
|
|
|
WP_API
|
|
|
|
|
WpSpaDevice * wp_spa_device_new_from_spa_factory (WpCore * core,
|
|
|
|
|
const gchar * factory_name, WpProperties * properties);
|
|
|
|
|
|
2020-06-10 15:34:34 -04:00
|
|
|
WP_API
|
|
|
|
|
guint32 wp_spa_device_get_bound_id (WpSpaDevice * self);
|
|
|
|
|
|
|
|
|
|
WP_API
|
|
|
|
|
void wp_spa_device_export (WpSpaDevice * self, GCancellable * cancellable,
|
|
|
|
|
GAsyncReadyCallback callback, gpointer user_data);
|
|
|
|
|
|
|
|
|
|
WP_API
|
|
|
|
|
gboolean wp_spa_device_export_finish (WpSpaDevice * self, GAsyncResult * res,
|
|
|
|
|
GError ** error);
|
|
|
|
|
|
|
|
|
|
WP_API
|
|
|
|
|
void wp_spa_device_activate (WpSpaDevice * self);
|
|
|
|
|
|
2019-07-05 10:22:28 -04:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
|
|
#endif
|