| 1 |
/* WirePlumber |
| 2 |
* |
| 3 |
* Copyright © 2019 Collabora Ltd. |
| 4 |
* @author Julian Bouzas <[email protected]> |
| 5 |
* |
| 6 |
* SPDX-License-Identifier: MIT |
| 7 |
*/ |
| 8 |
|
| 9 |
#ifndef __WIREPLUMBER_PORT_H__ |
| 10 |
#define __WIREPLUMBER_PORT_H__ |
| 11 |
|
| 12 |
#include "global-proxy.h" |
| 13 |
|
| 14 |
G_BEGIN_DECLS |
| 15 |
|
| 16 |
/*! |
| 17 |
* \brief The different directions that a port can have |
| 18 |
* \ingroup wpport |
| 19 |
*/ |
| 20 |
typedef enum { |
| 21 |
WP_DIRECTION_INPUT, /*!< a sink, consuming input */ |
| 22 |
WP_DIRECTION_OUTPUT, /*!< a source, producing output */ |
| 23 |
} WpDirection; |
| 24 |
|
| 25 |
/*! |
| 26 |
* \brief The WpPort GType |
| 27 |
* \ingroup wpport |
| 28 |
*/ |
| 29 |
#define WP_TYPE_PORT (wp_port_get_type ()) |
| 30 |
WP_API |
| 31 |
G_DECLARE_FINAL_TYPE (WpPort, wp_port, WP, PORT, WpGlobalProxy) |
| 32 |
|
| 33 |
WP_API |
| 34 |
WpDirection wp_port_get_direction (WpPort * self); |
| 35 |
|
| 36 |
G_END_DECLS |
| 37 |
|
| 38 |
#endif |