mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:02:44 +00:00 
			
		
		
		
	 edf7843409
			
		
	
	
		edf7843409
		
	
	
	
	
		
			
			This patch adds a Config::Listener abstract class that anyone can inherit from and receive notifications when configuration values change. We don't yet monitor file system changes, so these only work for changes made by ConfigServer itself. In order to receive these notifications, clients must monitor the domain by calling monitor_domain(). Only pledged domains can be monitored. Note that the client initiating the change does not get notified.
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			253 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			253 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(SOURCES
 | |
|     Client.cpp
 | |
|     Listener.cpp
 | |
| )
 | |
| 
 | |
| set(GENERATED_SOURCES
 | |
|     ../../Services/ConfigServer/ConfigServerEndpoint.h
 | |
|     ../../Services/ConfigServer/ConfigClientEndpoint.h
 | |
| )
 | |
| 
 | |
| serenity_lib(LibConfig config)
 | |
| target_link_libraries(LibConfig LibIPC)
 |