mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: add dummy sink/source port iteration
This commit is contained in:
		
							parent
							
								
									5d7d4d3b63
								
							
						
					
					
						commit
						27e06c66fd
					
				
					 1 changed files with 37 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -2973,6 +2973,24 @@ static int fill_sink_info(struct client *client, struct message *m,
 | 
			
		|||
		message_put(m,
 | 
			
		||||
			TAG_U32, 0,			/* n_ports */
 | 
			
		||||
			TAG_INVALID);
 | 
			
		||||
		while (false) {
 | 
			
		||||
			message_put(m,
 | 
			
		||||
				TAG_STRING, NULL,	/* name */
 | 
			
		||||
				TAG_STRING, NULL,	/* description */
 | 
			
		||||
				TAG_U32, 0,		/* priority */
 | 
			
		||||
				TAG_INVALID);
 | 
			
		||||
			if (client->version >= 24) {
 | 
			
		||||
				message_put(m,
 | 
			
		||||
					TAG_U32, 0,		/* available */
 | 
			
		||||
					TAG_INVALID);
 | 
			
		||||
			}
 | 
			
		||||
			if (client->version >= 34) {
 | 
			
		||||
				message_put(m,
 | 
			
		||||
					TAG_STRING, NULL,	/* availability_group */
 | 
			
		||||
					TAG_U32, 0,		/* type */
 | 
			
		||||
					TAG_INVALID);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		message_put(m,
 | 
			
		||||
			TAG_STRING, NULL,		/* active port name */
 | 
			
		||||
			TAG_INVALID);
 | 
			
		||||
| 
						 | 
				
			
			@ -3083,6 +3101,24 @@ static int fill_source_info(struct client *client, struct message *m,
 | 
			
		|||
		message_put(m,
 | 
			
		||||
			TAG_U32, 0,				/* n_ports */
 | 
			
		||||
			TAG_INVALID);
 | 
			
		||||
		while (false) {
 | 
			
		||||
			message_put(m,
 | 
			
		||||
				TAG_STRING, NULL,		/* name */
 | 
			
		||||
				TAG_STRING, NULL,		/* description */
 | 
			
		||||
				TAG_U32, 0,			/* priority */
 | 
			
		||||
				TAG_INVALID);
 | 
			
		||||
			if (client->version >= 24) {
 | 
			
		||||
				message_put(m,
 | 
			
		||||
					TAG_U32, 0,		/* available */
 | 
			
		||||
					TAG_INVALID);
 | 
			
		||||
			}
 | 
			
		||||
			if (client->version >= 34) {
 | 
			
		||||
				message_put(m,
 | 
			
		||||
					TAG_STRING, NULL,	/* availability_group */
 | 
			
		||||
					TAG_U32, 0,		/* type */
 | 
			
		||||
					TAG_INVALID);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		message_put(m,
 | 
			
		||||
			TAG_STRING, NULL,		/* active port name */
 | 
			
		||||
			TAG_INVALID);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue