mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	jack: move metadata to exports file
So that we don't have to depend on the header file. Fixes #306
This commit is contained in:
		
							parent
							
								
									fffe94771f
								
							
						
					
					
						commit
						c2fc8423eb
					
				
					 3 changed files with 37 additions and 13 deletions
				
			
		
							
								
								
									
										36
									
								
								pipewire-jack/src/export.c
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								pipewire-jack/src/export.c
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,36 @@
 | 
				
			||||||
 | 
					/* PipeWire
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Copyright © 2020 Wim Taymans
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Permission is hereby granted, free of charge, to any person obtaining a
 | 
				
			||||||
 | 
					 * copy of this software and associated documentation files (the "Software"),
 | 
				
			||||||
 | 
					 * to deal in the Software without restriction, including without limitation
 | 
				
			||||||
 | 
					 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 | 
				
			||||||
 | 
					 * and/or sell copies of the Software, and to permit persons to whom the
 | 
				
			||||||
 | 
					 * Software is furnished to do so, subject to the following conditions:
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * The above copyright notice and this permission notice (including the next
 | 
				
			||||||
 | 
					 * paragraph) shall be included in all copies or substantial portions of the
 | 
				
			||||||
 | 
					 * Software.
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 | 
				
			||||||
 | 
					 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 | 
				
			||||||
 | 
					 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 | 
				
			||||||
 | 
					 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 | 
				
			||||||
 | 
					 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <spa/utils/defs.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#define JACK_METADATA_PREFIX "http://jackaudio.org/metadata/"
 | 
				
			||||||
 | 
					SPA_EXPORT const char JACK_METADATA_CONNECTED[]   = JACK_METADATA_PREFIX "connected";
 | 
				
			||||||
 | 
					SPA_EXPORT const char JACK_METADATA_EVENT_TYPES[] = JACK_METADATA_PREFIX "event-types";
 | 
				
			||||||
 | 
					SPA_EXPORT const char JACK_METADATA_HARDWARE[]    = JACK_METADATA_PREFIX "hardware";
 | 
				
			||||||
 | 
					SPA_EXPORT const char JACK_METADATA_ICON_LARGE[]  = JACK_METADATA_PREFIX "icon-large";
 | 
				
			||||||
 | 
					SPA_EXPORT const char JACK_METADATA_ICON_NAME[]   = JACK_METADATA_PREFIX "icon-name";
 | 
				
			||||||
 | 
					SPA_EXPORT const char JACK_METADATA_ICON_SMALL[]  = JACK_METADATA_PREFIX "icon-small";
 | 
				
			||||||
 | 
					SPA_EXPORT const char JACK_METADATA_ORDER[]       = JACK_METADATA_PREFIX "order";
 | 
				
			||||||
 | 
					SPA_EXPORT const char JACK_METADATA_PORT_GROUP[]  = JACK_METADATA_PREFIX "port-group";
 | 
				
			||||||
 | 
					SPA_EXPORT const char JACK_METADATA_PRETTY_NAME[] = JACK_METADATA_PREFIX "pretty-name";
 | 
				
			||||||
 | 
					SPA_EXPORT const char JACK_METADATA_SIGNAL_TYPE[] = JACK_METADATA_PREFIX "signal-type";
 | 
				
			||||||
 | 
					#undef JACK_METADATA_PREFIX
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,5 @@
 | 
				
			||||||
pipewire_jack_sources = [
 | 
					pipewire_jack_sources = [
 | 
				
			||||||
 | 
					  'export.c',
 | 
				
			||||||
  'pipewire-jack.c',
 | 
					  'pipewire-jack.c',
 | 
				
			||||||
  'ringbuffer.c',
 | 
					  'ringbuffer.c',
 | 
				
			||||||
  'uuid.c',
 | 
					  'uuid.c',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -408,16 +408,3 @@ int jack_set_property_change_callback (jack_client_t*             client,
 | 
				
			||||||
	c->property_arg = arg;
 | 
						c->property_arg = arg;
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
#define JACK_METADATA_PREFIX "http://jackaudio.org/metadata/"
 | 
					 | 
				
			||||||
SPA_EXPORT const char* JACK_METADATA_CONNECTED   = JACK_METADATA_PREFIX "connected";
 | 
					 | 
				
			||||||
SPA_EXPORT const char* JACK_METADATA_EVENT_TYPES = JACK_METADATA_PREFIX "event-types";
 | 
					 | 
				
			||||||
SPA_EXPORT const char* JACK_METADATA_HARDWARE    = JACK_METADATA_PREFIX "hardware";
 | 
					 | 
				
			||||||
SPA_EXPORT const char* JACK_METADATA_ICON_LARGE  = JACK_METADATA_PREFIX "icon-large";
 | 
					 | 
				
			||||||
SPA_EXPORT const char* JACK_METADATA_ICON_NAME   = JACK_METADATA_PREFIX "icon-name";
 | 
					 | 
				
			||||||
SPA_EXPORT const char* JACK_METADATA_ICON_SMALL  = JACK_METADATA_PREFIX "icon-small";
 | 
					 | 
				
			||||||
SPA_EXPORT const char* JACK_METADATA_ORDER       = JACK_METADATA_PREFIX "order";
 | 
					 | 
				
			||||||
SPA_EXPORT const char* JACK_METADATA_PORT_GROUP  = JACK_METADATA_PREFIX "port-group";
 | 
					 | 
				
			||||||
SPA_EXPORT const char* JACK_METADATA_PRETTY_NAME = JACK_METADATA_PREFIX "pretty-name";
 | 
					 | 
				
			||||||
SPA_EXPORT const char* JACK_METADATA_SIGNAL_TYPE = JACK_METADATA_PREFIX "signal-type";
 | 
					 | 
				
			||||||
#undef JACK_METADATA_PREFIX
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue