mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Use 128-bit hexadecimal string tokens generated with /dev/urandom instead of UUIDs for xdg-foreign handles, removing the libuuid dependency. Update readme and CI. Closes #2830. build: remove xdg-foreign feature With no external dependencies required, there's no reason not to always build it. Remove WLR_HAS_XDG_FOREIGN as well.
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			149 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			149 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef UTIL_TOKEN_H
 | 
						|
#define UTIL_TOKEN_H
 | 
						|
 | 
						|
#include <stdbool.h>
 | 
						|
 | 
						|
#define TOKEN_STRLEN 33
 | 
						|
bool generate_token(char out[static TOKEN_STRLEN]);
 | 
						|
 | 
						|
#endif
 |