mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	deviceprovider: add device provider
Add device provider Clean up states Make generic object id instead of exposing GDBusProxy Add more introspection API
This commit is contained in:
		
							parent
							
								
									cbeee04809
								
							
						
					
					
						commit
						7159ea8408
					
				
					 14 changed files with 811 additions and 41 deletions
				
			
		| 
						 | 
				
			
			@ -33,7 +33,8 @@
 | 
			
		|||
 * @cancelable: a #GCancellable
 | 
			
		||||
 * @user_data: user data passed to @cb
 | 
			
		||||
 *
 | 
			
		||||
 * Call @cb for each source.
 | 
			
		||||
 * Call @cb for each source. @cb will be called with NULL when there
 | 
			
		||||
 * are no more sources to list.
 | 
			
		||||
 */
 | 
			
		||||
void
 | 
			
		||||
pinos_context_list_source_info (PinosContext            *context,
 | 
			
		||||
| 
						 | 
				
			
			@ -49,9 +50,32 @@ pinos_context_list_source_info (PinosContext            *context,
 | 
			
		|||
    GDBusProxy *proxy = walk->data;
 | 
			
		||||
    PinosSourceInfo info;
 | 
			
		||||
 | 
			
		||||
    info.id = proxy;
 | 
			
		||||
    info.name = "gst";
 | 
			
		||||
 | 
			
		||||
    cb (context, &info, user_data);
 | 
			
		||||
  }
 | 
			
		||||
  cb (context, NULL, user_data);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * pinos_context_get_source_info:
 | 
			
		||||
 * @context: a connected #PinosContext
 | 
			
		||||
 * @id: a source id
 | 
			
		||||
 * @flags: extra #PinosSourceInfoFlags
 | 
			
		||||
 * @cb: a #PinosSourceInfoCallback
 | 
			
		||||
 * @cancelable: a #GCancellable
 | 
			
		||||
 * @user_data: user data passed to @cb
 | 
			
		||||
 *
 | 
			
		||||
 * Call @cb for each source. @cb will be called with NULL when there
 | 
			
		||||
 * are no more sources to list.
 | 
			
		||||
 */
 | 
			
		||||
void
 | 
			
		||||
pinos_context_get_source_info_by_id (PinosContext *context,
 | 
			
		||||
                                     gpointer id,
 | 
			
		||||
                                     PinosSourceInfoFlags flags,
 | 
			
		||||
                                     PinosSourceInfoCallback cb,
 | 
			
		||||
                                     GCancellable *cancellable,
 | 
			
		||||
                                     gpointer user_data)
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue