mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Use errno for result errors
Make new enumeration for data transport status and use errno style error numbers for errors.
This commit is contained in:
		
							parent
							
								
									dda28b1589
								
							
						
					
					
						commit
						6fb0f580ea
					
				
					 86 changed files with 2019 additions and 1988 deletions
				
			
		| 
						 | 
				
			
			@ -67,11 +67,11 @@ static void *create_object(void *_data,
 | 
			
		|||
 | 
			
		||||
      no_resource:
 | 
			
		||||
	pw_log_error("client-node needs a resource");
 | 
			
		||||
	pw_resource_error(resource, SPA_RESULT_INVALID_ARGUMENTS, "no resource");
 | 
			
		||||
	pw_resource_error(resource, -EINVAL, "no resource");
 | 
			
		||||
	goto done;
 | 
			
		||||
      no_mem:
 | 
			
		||||
	pw_log_error("can't create node");
 | 
			
		||||
	pw_resource_error(resource, SPA_RESULT_NO_MEMORY, "no memory");
 | 
			
		||||
	pw_resource_error(resource, -ENOMEM, "no memory");
 | 
			
		||||
	goto done;
 | 
			
		||||
      done:
 | 
			
		||||
	if (properties)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue