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_PORT_H__
|
|
|
|
|
#define __WIREPLUMBER_PORT_H__
|
2019-07-05 10:22:28 -04:00
|
|
|
|
|
|
|
|
#include "proxy.h"
|
|
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
2020-04-21 17:08:10 +03:00
|
|
|
/**
|
|
|
|
|
* WpDirection:
|
|
|
|
|
* @WP_DIRECTION_INPUT: a sink, consuming input
|
|
|
|
|
* @WP_DIRECTION_OUTPUT: a source, producing output
|
|
|
|
|
*
|
|
|
|
|
* The different directions the endpoint can have
|
|
|
|
|
*/
|
|
|
|
|
typedef enum {
|
|
|
|
|
WP_DIRECTION_INPUT,
|
|
|
|
|
WP_DIRECTION_OUTPUT,
|
|
|
|
|
} WpDirection;
|
|
|
|
|
|
2020-02-17 15:39:19 +02:00
|
|
|
/**
|
|
|
|
|
* WP_TYPE_PORT:
|
|
|
|
|
*
|
|
|
|
|
* The #WpPort #GType
|
|
|
|
|
*/
|
2020-01-22 18:54:45 +02:00
|
|
|
#define WP_TYPE_PORT (wp_port_get_type ())
|
2020-01-16 18:50:07 +02:00
|
|
|
WP_API
|
2020-01-22 18:54:45 +02:00
|
|
|
G_DECLARE_FINAL_TYPE (WpPort, wp_port, WP, PORT, WpProxy)
|
2019-07-05 10:22:28 -04:00
|
|
|
|
2020-04-21 17:08:10 +03:00
|
|
|
WP_API
|
|
|
|
|
WpDirection wp_port_get_direction (WpPort * self);
|
|
|
|
|
|
2019-07-05 10:22:28 -04:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
|
|
#endif
|