mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pw_endpoint_stream_proxy -> pw_endpoint_stream
This commit is contained in:
		
							parent
							
								
									9b53c65c72
								
							
						
					
					
						commit
						3805d5dfa2
					
				
					 5 changed files with 58 additions and 58 deletions
				
			
		| 
						 | 
				
			
			@ -39,8 +39,8 @@ extern "C" {
 | 
			
		|||
struct pw_session;
 | 
			
		||||
#define PW_VERSION_ENDPOINT		0
 | 
			
		||||
struct pw_endpoint;
 | 
			
		||||
#define PW_VERSION_ENDPOINT_STREAM_PROXY	0
 | 
			
		||||
struct pw_endpoint_stream_proxy;
 | 
			
		||||
#define PW_VERSION_ENDPOINT_STREAM	0
 | 
			
		||||
struct pw_endpoint_stream;
 | 
			
		||||
#define PW_VERSION_ENDPOINT_LINK		0
 | 
			
		||||
struct pw_endpoint_link;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -252,12 +252,12 @@ struct pw_endpoint_methods {
 | 
			
		|||
 | 
			
		||||
/* Endpoint Stream */
 | 
			
		||||
 | 
			
		||||
#define PW_ENDPOINT_STREAM_PROXY_EVENT_INFO		0
 | 
			
		||||
#define PW_ENDPOINT_STREAM_PROXY_EVENT_PARAM		1
 | 
			
		||||
#define PW_ENDPOINT_STREAM_PROXY_EVENT_NUM		2
 | 
			
		||||
#define PW_ENDPOINT_STREAM_EVENT_INFO		0
 | 
			
		||||
#define PW_ENDPOINT_STREAM_EVENT_PARAM		1
 | 
			
		||||
#define PW_ENDPOINT_STREAM_EVENT_NUM		2
 | 
			
		||||
 | 
			
		||||
struct pw_endpoint_stream_proxy_events {
 | 
			
		||||
#define PW_VERSION_ENDPOINT_STREAM_PROXY_EVENTS	0
 | 
			
		||||
struct pw_endpoint_stream_events {
 | 
			
		||||
#define PW_VERSION_ENDPOINT_STREAM_EVENTS	0
 | 
			
		||||
	uint32_t version;			/**< version of this structure */
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
| 
						 | 
				
			
			@ -283,19 +283,19 @@ struct pw_endpoint_stream_proxy_events {
 | 
			
		|||
		       const struct spa_pod *param);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#define PW_ENDPOINT_STREAM_PROXY_METHOD_ADD_LISTENER		0
 | 
			
		||||
#define PW_ENDPOINT_STREAM_PROXY_METHOD_SUBSCRIBE_PARAMS	1
 | 
			
		||||
#define PW_ENDPOINT_STREAM_PROXY_METHOD_ENUM_PARAMS		2
 | 
			
		||||
#define PW_ENDPOINT_STREAM_PROXY_METHOD_SET_PARAM		3
 | 
			
		||||
#define PW_ENDPOINT_STREAM_PROXY_METHOD_NUM			4
 | 
			
		||||
#define PW_ENDPOINT_STREAM_METHOD_ADD_LISTENER		0
 | 
			
		||||
#define PW_ENDPOINT_STREAM_METHOD_SUBSCRIBE_PARAMS	1
 | 
			
		||||
#define PW_ENDPOINT_STREAM_METHOD_ENUM_PARAMS		2
 | 
			
		||||
#define PW_ENDPOINT_STREAM_METHOD_SET_PARAM		3
 | 
			
		||||
#define PW_ENDPOINT_STREAM_METHOD_NUM			4
 | 
			
		||||
 | 
			
		||||
struct pw_endpoint_stream_proxy_methods {
 | 
			
		||||
#define PW_VERSION_ENDPOINT_STREAM_PROXY_METHODS	0
 | 
			
		||||
struct pw_endpoint_stream_methods {
 | 
			
		||||
#define PW_VERSION_ENDPOINT_STREAM_METHODS	0
 | 
			
		||||
	uint32_t version;			/**< version of this structure */
 | 
			
		||||
 | 
			
		||||
	int (*add_listener) (void *object,
 | 
			
		||||
			struct spa_hook *listener,
 | 
			
		||||
			const struct pw_endpoint_stream_proxy_events *events,
 | 
			
		||||
			const struct pw_endpoint_stream_events *events,
 | 
			
		||||
			void *data);
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
| 
						 | 
				
			
			@ -336,19 +336,19 @@ struct pw_endpoint_stream_proxy_methods {
 | 
			
		|||
			  const struct spa_pod *param);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#define pw_endpoint_stream_proxy_method(o,method,version,...)		\
 | 
			
		||||
#define pw_endpoint_stream_method(o,method,version,...)		\
 | 
			
		||||
({									\
 | 
			
		||||
	int _res = -ENOTSUP;						\
 | 
			
		||||
	spa_interface_call_res((struct spa_interface*)o,		\
 | 
			
		||||
			struct pw_endpoint_stream_proxy_methods, _res,	\
 | 
			
		||||
			struct pw_endpoint_stream_methods, _res,	\
 | 
			
		||||
			method, version, ##__VA_ARGS__);		\
 | 
			
		||||
	_res;								\
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
#define pw_endpoint_stream_proxy_add_listener(c,...)		pw_endpoint_stream_proxy_method(c,add_listener,0,__VA_ARGS__)
 | 
			
		||||
#define pw_endpoint_stream_proxy_subscribe_params(c,...)	pw_endpoint_stream_proxy_method(c,subscribe_params,0,__VA_ARGS__)
 | 
			
		||||
#define pw_endpoint_stream_proxy_enum_params(c,...)		pw_endpoint_stream_proxy_method(c,enum_params,0,__VA_ARGS__)
 | 
			
		||||
#define pw_endpoint_stream_proxy_set_param(c,...)		pw_endpoint_stream_proxy_method(c,set_param,0,__VA_ARGS__)
 | 
			
		||||
#define pw_endpoint_stream_add_listener(c,...)		pw_endpoint_stream_method(c,add_listener,0,__VA_ARGS__)
 | 
			
		||||
#define pw_endpoint_stream_subscribe_params(c,...)	pw_endpoint_stream_method(c,subscribe_params,0,__VA_ARGS__)
 | 
			
		||||
#define pw_endpoint_stream_enum_params(c,...)		pw_endpoint_stream_method(c,enum_params,0,__VA_ARGS__)
 | 
			
		||||
#define pw_endpoint_stream_set_param(c,...)		pw_endpoint_stream_method(c,set_param,0,__VA_ARGS__)
 | 
			
		||||
 | 
			
		||||
/* Endpoint Link */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue