mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	jack: return useful version number (major version 3)
Also add the PipeWire string in there to give apps a chance to report this.
This commit is contained in:
		
							parent
							
								
									b0c758719d
								
							
						
					
					
						commit
						c979f181a5
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -604,7 +604,7 @@ SPA_EXPORT
 | 
				
			||||||
void jack_get_version(int *major_ptr, int *minor_ptr, int *micro_ptr, int *proto_ptr)
 | 
					void jack_get_version(int *major_ptr, int *minor_ptr, int *micro_ptr, int *proto_ptr)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	if (major_ptr)
 | 
						if (major_ptr)
 | 
				
			||||||
		*major_ptr = 0;
 | 
							*major_ptr = 3;
 | 
				
			||||||
	if (minor_ptr)
 | 
						if (minor_ptr)
 | 
				
			||||||
		*minor_ptr = 0;
 | 
							*minor_ptr = 0;
 | 
				
			||||||
	if (micro_ptr)
 | 
						if (micro_ptr)
 | 
				
			||||||
| 
						 | 
					@ -617,7 +617,9 @@ SPA_EXPORT
 | 
				
			||||||
const char *
 | 
					const char *
 | 
				
			||||||
jack_get_version_string(void)
 | 
					jack_get_version_string(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	return "0.0.0.0";
 | 
						static char name[1024];
 | 
				
			||||||
 | 
						snprintf(name, sizeof(name)-1, "3.0.0.0 (using PipeWire %s)", pw_get_library_version());
 | 
				
			||||||
 | 
						return name;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void on_sync_reply(void *data, uint32_t id, int seq)
 | 
					static void on_sync_reply(void *data, uint32_t id, int seq)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue