mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	cleanups
Follow the data/size argument order convention to make the api more consistent.
This commit is contained in:
		
							parent
							
								
									7f931464e8
								
							
						
					
					
						commit
						5bebfe022b
					
				
					 50 changed files with 253 additions and 252 deletions
				
			
		| 
						 | 
				
			
			@ -278,10 +278,10 @@ spa_proxy_node_get_n_ports(struct spa_node *node,
 | 
			
		|||
 | 
			
		||||
static int
 | 
			
		||||
spa_proxy_node_get_port_ids(struct spa_node *node,
 | 
			
		||||
			    uint32_t n_input_ports,
 | 
			
		||||
			    uint32_t *input_ids,
 | 
			
		||||
			    uint32_t n_output_ports,
 | 
			
		||||
			    uint32_t *output_ids)
 | 
			
		||||
			    uint32_t n_input_ids,
 | 
			
		||||
			    uint32_t *output_ids,
 | 
			
		||||
			    uint32_t n_output_ids)
 | 
			
		||||
{
 | 
			
		||||
	struct proxy *this;
 | 
			
		||||
	int c, i;
 | 
			
		||||
| 
						 | 
				
			
			@ -292,13 +292,13 @@ spa_proxy_node_get_port_ids(struct spa_node *node,
 | 
			
		|||
	this = SPA_CONTAINER_OF(node, struct proxy, node);
 | 
			
		||||
 | 
			
		||||
	if (input_ids) {
 | 
			
		||||
		for (c = 0, i = 0; i < MAX_INPUTS && c < n_input_ports; i++) {
 | 
			
		||||
		for (c = 0, i = 0; i < MAX_INPUTS && c < n_input_ids; i++) {
 | 
			
		||||
			if (this->in_ports[i].valid)
 | 
			
		||||
				input_ids[c++] = i;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	if (output_ids) {
 | 
			
		||||
		for (c = 0, i = 0; i < MAX_OUTPUTS && c < n_output_ports; i++) {
 | 
			
		||||
		for (c = 0, i = 0; i < MAX_OUTPUTS && c < n_output_ids; i++) {
 | 
			
		||||
			if (this->out_ports[i].valid)
 | 
			
		||||
				output_ids[c++] = i;
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue