mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	add SPA_SENTINEL
This commit is contained in:
		
							parent
							
								
									c7d7058896
								
							
						
					
					
						commit
						7f885b6db4
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -153,12 +153,14 @@ struct spa_param_info {
 | 
				
			||||||
#define SPA_PRINTF_FUNC(fmt, arg1) __attribute__((format(printf, fmt, arg1)))
 | 
					#define SPA_PRINTF_FUNC(fmt, arg1) __attribute__((format(printf, fmt, arg1)))
 | 
				
			||||||
#define SPA_ALIGNED(align) __attribute__((aligned(align)))
 | 
					#define SPA_ALIGNED(align) __attribute__((aligned(align)))
 | 
				
			||||||
#define SPA_DEPRECATED __attribute__ ((deprecated))
 | 
					#define SPA_DEPRECATED __attribute__ ((deprecated))
 | 
				
			||||||
#define SPA_EXPORT __attribute__ ((visibility("default")))
 | 
					#define SPA_EXPORT __attribute__((visibility("default")))
 | 
				
			||||||
 | 
					#define SPA_SENTINEL __attribute__((__sentinel__))
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
#define SPA_PRINTF_FUNC(fmt, arg1)
 | 
					#define SPA_PRINTF_FUNC(fmt, arg1)
 | 
				
			||||||
#define SPA_ALIGNED(align)
 | 
					#define SPA_ALIGNED(align)
 | 
				
			||||||
#define SPA_DEPRECATED
 | 
					#define SPA_DEPRECATED
 | 
				
			||||||
#define SPA_EXPORT
 | 
					#define SPA_EXPORT
 | 
				
			||||||
 | 
					#define SPA_SENTINEL
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
 | 
					#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -46,7 +46,7 @@ struct pw_properties {
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct pw_properties *
 | 
					struct pw_properties *
 | 
				
			||||||
pw_properties_new(const char *key, ...);
 | 
					pw_properties_new(const char *key, ...) SPA_SENTINEL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct pw_properties *
 | 
					struct pw_properties *
 | 
				
			||||||
pw_properties_new_dict(const struct spa_dict *dict);
 | 
					pw_properties_new_dict(const struct spa_dict *dict);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue