mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Make native protocol
Remove DBus and work towards something like wayland. Remove more glib stuff from the client code
This commit is contained in:
		
							parent
							
								
									efae64a759
								
							
						
					
					
						commit
						27bba6f587
					
				
					 55 changed files with 3089 additions and 4969 deletions
				
			
		
							
								
								
									
										75
									
								
								pinos/client/proxy.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										75
									
								
								pinos/client/proxy.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,75 @@
 | 
			
		|||
/* Pinos
 | 
			
		||||
 * Copyright (C) 2015 Wim Taymans <wim.taymans@gmail.com>
 | 
			
		||||
 *
 | 
			
		||||
 * This library is free software; you can redistribute it and/or
 | 
			
		||||
 * modify it under the terms of the GNU Library General Public
 | 
			
		||||
 * License as published by the Free Software Foundation; either
 | 
			
		||||
 * version 2 of the License, or (at your option) any later version.
 | 
			
		||||
 *
 | 
			
		||||
 * This library is distributed in the hope that it will be useful,
 | 
			
		||||
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | 
			
		||||
 * Library General Public License for more details.
 | 
			
		||||
 *
 | 
			
		||||
 * You should have received a copy of the GNU Library General Public
 | 
			
		||||
 * License along with this library; if not, write to the
 | 
			
		||||
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 | 
			
		||||
 * Boston, MA 02110-1301, USA.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef __PINOS_PROXY_H__
 | 
			
		||||
#define __PINOS_PROXY_H__
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include <pinos/client/connection.h>
 | 
			
		||||
 | 
			
		||||
typedef struct _PinosProxy PinosProxy;
 | 
			
		||||
 | 
			
		||||
typedef SpaResult (*PinosSendFunc)     (void             *object,
 | 
			
		||||
                                        uint32_t          id,
 | 
			
		||||
                                        PinosMessageType  type,
 | 
			
		||||
                                        void             *message,
 | 
			
		||||
                                        bool              flush,
 | 
			
		||||
                                        void             *data);
 | 
			
		||||
 | 
			
		||||
typedef SpaResult (*PinosDispatchFunc) (void             *object,
 | 
			
		||||
                                        PinosMessageType  type,
 | 
			
		||||
                                        void             *message,
 | 
			
		||||
                                        void             *data);
 | 
			
		||||
#include <pinos/client/context.h>
 | 
			
		||||
 | 
			
		||||
struct _PinosProxy {
 | 
			
		||||
  PinosContext *context;
 | 
			
		||||
  SpaList       link;
 | 
			
		||||
 | 
			
		||||
  uint32_t      id;
 | 
			
		||||
  uint32_t      type;
 | 
			
		||||
 | 
			
		||||
  PinosSendFunc      send_func;
 | 
			
		||||
  void              *send_data;
 | 
			
		||||
  PinosDispatchFunc  dispatch_func;
 | 
			
		||||
  void              *dispatch_data;
 | 
			
		||||
 | 
			
		||||
  PINOS_SIGNAL (destroy_signal, (PinosListener *listener,
 | 
			
		||||
                                 PinosProxy    *proxy));
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
PinosProxy *      pinos_proxy_new                     (PinosContext      *context,
 | 
			
		||||
                                                       uint32_t           id,
 | 
			
		||||
                                                       uint32_t           type);
 | 
			
		||||
void              pinos_proxy_destroy                 (PinosProxy        *proxy);
 | 
			
		||||
 | 
			
		||||
SpaResult         pinos_proxy_send_message            (PinosProxy        *proxy,
 | 
			
		||||
                                                       PinosMessageType   type,
 | 
			
		||||
                                                       void              *message,
 | 
			
		||||
                                                       bool               flush);
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#endif /* __PINOS_PROXY_H__ */
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue