mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
pw_endpoint_proxy -> pw_endpoint
This commit is contained in:
parent
85103d128e
commit
9b53c65c72
10 changed files with 71 additions and 71 deletions
|
|
@ -37,8 +37,8 @@ extern "C" {
|
|||
|
||||
#define PW_VERSION_SESSION 0
|
||||
struct pw_session;
|
||||
#define PW_VERSION_ENDPOINT_PROXY 0
|
||||
struct pw_endpoint_proxy;
|
||||
#define PW_VERSION_ENDPOINT 0
|
||||
struct pw_endpoint;
|
||||
#define PW_VERSION_ENDPOINT_STREAM_PROXY 0
|
||||
struct pw_endpoint_stream_proxy;
|
||||
#define PW_VERSION_ENDPOINT_LINK 0
|
||||
|
|
@ -148,12 +148,12 @@ struct pw_session_methods {
|
|||
|
||||
/* Endpoint */
|
||||
|
||||
#define PW_ENDPOINT_PROXY_EVENT_INFO 0
|
||||
#define PW_ENDPOINT_PROXY_EVENT_PARAM 1
|
||||
#define PW_ENDPOINT_PROXY_EVENT_NUM 2
|
||||
#define PW_ENDPOINT_EVENT_INFO 0
|
||||
#define PW_ENDPOINT_EVENT_PARAM 1
|
||||
#define PW_ENDPOINT_EVENT_NUM 2
|
||||
|
||||
struct pw_endpoint_proxy_events {
|
||||
#define PW_VERSION_ENDPOINT_PROXY_EVENTS 0
|
||||
struct pw_endpoint_events {
|
||||
#define PW_VERSION_ENDPOINT_EVENTS 0
|
||||
uint32_t version; /**< version of this structure */
|
||||
|
||||
/**
|
||||
|
|
@ -179,20 +179,20 @@ struct pw_endpoint_proxy_events {
|
|||
const struct spa_pod *param);
|
||||
};
|
||||
|
||||
#define PW_ENDPOINT_PROXY_METHOD_ADD_LISTENER 0
|
||||
#define PW_ENDPOINT_PROXY_METHOD_SUBSCRIBE_PARAMS 1
|
||||
#define PW_ENDPOINT_PROXY_METHOD_ENUM_PARAMS 2
|
||||
#define PW_ENDPOINT_PROXY_METHOD_SET_PARAM 3
|
||||
#define PW_ENDPOINT_PROXY_METHOD_CREATE_LINK 4
|
||||
#define PW_ENDPOINT_PROXY_METHOD_NUM 5
|
||||
#define PW_ENDPOINT_METHOD_ADD_LISTENER 0
|
||||
#define PW_ENDPOINT_METHOD_SUBSCRIBE_PARAMS 1
|
||||
#define PW_ENDPOINT_METHOD_ENUM_PARAMS 2
|
||||
#define PW_ENDPOINT_METHOD_SET_PARAM 3
|
||||
#define PW_ENDPOINT_METHOD_CREATE_LINK 4
|
||||
#define PW_ENDPOINT_METHOD_NUM 5
|
||||
|
||||
struct pw_endpoint_proxy_methods {
|
||||
#define PW_VERSION_ENDPOINT_PROXY_METHODS 0
|
||||
struct pw_endpoint_methods {
|
||||
#define PW_VERSION_ENDPOINT_METHODS 0
|
||||
uint32_t version; /**< version of this structure */
|
||||
|
||||
int (*add_listener) (void *object,
|
||||
struct spa_hook *listener,
|
||||
const struct pw_endpoint_proxy_events *events,
|
||||
const struct pw_endpoint_events *events,
|
||||
void *data);
|
||||
|
||||
/**
|
||||
|
|
@ -235,20 +235,20 @@ struct pw_endpoint_proxy_methods {
|
|||
int (*create_link) (void *object, const struct spa_dict *props);
|
||||
};
|
||||
|
||||
#define pw_endpoint_proxy_method(o,method,version,...) \
|
||||
#define pw_endpoint_method(o,method,version,...) \
|
||||
({ \
|
||||
int _res = -ENOTSUP; \
|
||||
spa_interface_call_res((struct spa_interface*)o, \
|
||||
struct pw_endpoint_proxy_methods, _res, \
|
||||
struct pw_endpoint_methods, _res, \
|
||||
method, version, ##__VA_ARGS__); \
|
||||
_res; \
|
||||
})
|
||||
|
||||
#define pw_endpoint_proxy_add_listener(c,...) pw_endpoint_proxy_method(c,add_listener,0,__VA_ARGS__)
|
||||
#define pw_endpoint_proxy_subscribe_params(c,...) pw_endpoint_proxy_method(c,subscribe_params,0,__VA_ARGS__)
|
||||
#define pw_endpoint_proxy_enum_params(c,...) pw_endpoint_proxy_method(c,enum_params,0,__VA_ARGS__)
|
||||
#define pw_endpoint_proxy_set_param(c,...) pw_endpoint_proxy_method(c,set_param,0,__VA_ARGS__)
|
||||
#define pw_endpoint_proxy_create_link(c,...) pw_endpoint_proxy_method(c,create_link,0,__VA_ARGS__)
|
||||
#define pw_endpoint_add_listener(c,...) pw_endpoint_method(c,add_listener,0,__VA_ARGS__)
|
||||
#define pw_endpoint_subscribe_params(c,...) pw_endpoint_method(c,subscribe_params,0,__VA_ARGS__)
|
||||
#define pw_endpoint_enum_params(c,...) pw_endpoint_method(c,enum_params,0,__VA_ARGS__)
|
||||
#define pw_endpoint_set_param(c,...) pw_endpoint_method(c,set_param,0,__VA_ARGS__)
|
||||
#define pw_endpoint_create_link(c,...) pw_endpoint_method(c,create_link,0,__VA_ARGS__)
|
||||
|
||||
/* Endpoint Stream */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue