mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	include: prefer alsa/asoundlib.h for apps, dependency cleanups
Fixes several issues with header files: - prefer alsa/asoundlib.h file for the alsa-lib core functionalities (use #warning to inform current and future developers, do the job) - include alsa/asoundlib.h in headers for external plugins by default - pcm_external.h: dependencies cleanup - as benefit, the parsers in IDEs should get all information for individial header files (see PR#435) This change was mainly tergetted to fix errors caused by wrong include order (like for endianness detection, missing typedefs etc.). Closes: https://github.com/alsa-project/alsa-lib/issues/431 Link: https://github.com/alsa-project/alsa-lib/pull/435 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
		
							parent
							
								
									35d2efefa9
								
							
						
					
					
						commit
						ea8972c83b
					
				
					 28 changed files with 150 additions and 25 deletions
				
			
		| 
						 | 
				
			
			@ -6,11 +6,15 @@
 | 
			
		|||
 * API library for ALSA rawmidi/UMP interface
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#if !defined(__ASOUNDLIB_H) && !defined(ALSA_LIBRARY_BUILD)
 | 
			
		||||
/* don't use ALSA_LIBRARY_BUILD define in sources outside alsa-lib */
 | 
			
		||||
#warning "use #include <alsa/asoundlib.h>, <alsa/ump.h> should not be used directly"
 | 
			
		||||
#include <alsa/asoundlib.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef __ALSA_UMP_H
 | 
			
		||||
#define __ALSA_UMP_H
 | 
			
		||||
 | 
			
		||||
#include "rawmidi.h"
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue