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
				
			
		| 
						 | 
				
			
			@ -50,6 +50,7 @@ typedef enum {
 | 
			
		|||
 | 
			
		||||
/**
 | 
			
		||||
 * PinosSourceInfo:
 | 
			
		||||
 * @id: generic id of the source
 | 
			
		||||
 * @name: the name of the source
 | 
			
		||||
 * @properties: the properties of the source
 | 
			
		||||
 * @state: the current state of the source
 | 
			
		||||
| 
						 | 
				
			
			@ -58,6 +59,7 @@ typedef enum {
 | 
			
		|||
 * The source information
 | 
			
		||||
 */
 | 
			
		||||
typedef struct {
 | 
			
		||||
  gpointer id;
 | 
			
		||||
  const char *name;
 | 
			
		||||
  GVariant *properties;
 | 
			
		||||
  PinosSourceState state;
 | 
			
		||||
| 
						 | 
				
			
			@ -78,11 +80,17 @@ typedef enum {
 | 
			
		|||
 | 
			
		||||
typedef gboolean (*PinosSourceInfoCallback)  (PinosContext *c, const PinosSourceInfo *info, gpointer userdata);
 | 
			
		||||
 | 
			
		||||
void            pinos_context_list_source_info     (PinosContext *context,
 | 
			
		||||
                                                    PinosSourceInfoFlags flags,
 | 
			
		||||
                                                    PinosSourceInfoCallback cb,
 | 
			
		||||
                                                    GCancellable *cancellable,
 | 
			
		||||
                                                    gpointer user_data);
 | 
			
		||||
void            pinos_context_list_source_info      (PinosContext *context,
 | 
			
		||||
                                                     PinosSourceInfoFlags flags,
 | 
			
		||||
                                                     PinosSourceInfoCallback cb,
 | 
			
		||||
                                                     GCancellable *cancellable,
 | 
			
		||||
                                                     gpointer user_data);
 | 
			
		||||
void            pinos_context_get_source_info_by_id (PinosContext *context,
 | 
			
		||||
                                                     gpointer id,
 | 
			
		||||
                                                     PinosSourceInfoFlags flags,
 | 
			
		||||
                                                     PinosSourceInfoCallback cb,
 | 
			
		||||
                                                     GCancellable *cancellable,
 | 
			
		||||
                                                     gpointer user_data);
 | 
			
		||||
 | 
			
		||||
G_END_DECLS
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue