wireplumber/modules/module-endpoint-creation/parser-endpoint.h
Julian Bouzas 7d35191091 m-config-endpoint: refactor and rename to endpoint-creation
Allows implementing device specific endpoint creation logic, which is currently
needed for bluetooth endpoints as they need to be created differenly.
2020-10-05 11:35:24 -04:00

46 lines
924 B
C

/* WirePlumber
*
* Copyright © 2019 Collabora Ltd.
* @author Julian Bouzas <julian.bouzas@collabora.com>
*
* SPDX-License-Identifier: MIT
*/
#ifndef __WIREPLUMBER_PARSER_ENDPOINT_H__
#define __WIREPLUMBER_PARSER_ENDPOINT_H__
#include <wp/wp.h>
G_BEGIN_DECLS
#define WP_PARSER_ENDPOINT_EXTENSION "endpoint"
struct WpParserEndpointData {
char *filename;
struct MatchNode {
WpProperties *props;
} mn;
struct Endpoint {
char *session;
char *type;
char *streams;
struct Config {
char *name;
char *media_class;
char *role;
guint priority;
gboolean enable_control_port;
gboolean enable_monitor;
guint direction;
guint preferred_n_channels;
} c;
} e;
};
#define WP_TYPE_PARSER_ENDPOINT (wp_parser_endpoint_get_type ())
G_DECLARE_FINAL_TYPE (WpParserEndpoint, wp_parser_endpoint,
WP, PARSER_ENDPOINT, GObject)
G_END_DECLS
#endif