mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Make source and source-output server side only
Move source and source-output to the server side again. Make the daemon track objects per sender so that we can remove them when the sender disappears.
This commit is contained in:
		
							parent
							
								
									1b89f2f8ad
								
							
						
					
					
						commit
						d9444ab360
					
				
					 17 changed files with 139 additions and 205 deletions
				
			
		| 
						 | 
				
			
			@ -576,52 +576,6 @@ pv_context_disconnect (PvContext *context)
 | 
			
		|||
  return TRUE;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * pv_context_register_source:
 | 
			
		||||
 * @context: a #PvContext
 | 
			
		||||
 * @source: a #PvSource
 | 
			
		||||
 *
 | 
			
		||||
 * Register @source in @context. This makes @source availabe to other
 | 
			
		||||
 * connected clients.
 | 
			
		||||
 *
 | 
			
		||||
 * Returns: %TRUE on success.
 | 
			
		||||
 */
 | 
			
		||||
gboolean
 | 
			
		||||
pv_context_register_source (PvContext *context, PvSource *source)
 | 
			
		||||
{
 | 
			
		||||
  PvContextPrivate *priv;
 | 
			
		||||
 | 
			
		||||
  g_return_val_if_fail (PV_IS_CONTEXT (context), FALSE);
 | 
			
		||||
  g_return_val_if_fail (PV_IS_SOURCE (source), FALSE);
 | 
			
		||||
 | 
			
		||||
  priv = context->priv;
 | 
			
		||||
 | 
			
		||||
  pv_source_set_manager (source, priv->server_manager);
 | 
			
		||||
 | 
			
		||||
  return TRUE;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * pv_context_unregister_source:
 | 
			
		||||
 * @context: a #PvContext
 | 
			
		||||
 * @source: a #PvSource
 | 
			
		||||
 *
 | 
			
		||||
 * Unregister @source from @context. @source will no longer be
 | 
			
		||||
 * available for clients.
 | 
			
		||||
 *
 | 
			
		||||
 * Returns: %TRUE on success.
 | 
			
		||||
 */
 | 
			
		||||
gboolean
 | 
			
		||||
pv_context_unregister_source (PvContext *context, PvSource *source)
 | 
			
		||||
{
 | 
			
		||||
  g_return_val_if_fail (PV_IS_CONTEXT (context), FALSE);
 | 
			
		||||
  g_return_val_if_fail (PV_IS_SOURCE (source), FALSE);
 | 
			
		||||
 | 
			
		||||
  pv_source_set_manager (source, NULL);
 | 
			
		||||
 | 
			
		||||
  return TRUE;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * pv_context_get_state:
 | 
			
		||||
 * @context: a #PvContext
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue