mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	Read rc.xml and begin parsing
This commit is contained in:
		
							parent
							
								
									fdc131049c
								
							
						
					
					
						commit
						6166e9b370
					
				
					 12 changed files with 227 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,8 @@
 | 
			
		|||
#include "labwc.h"
 | 
			
		||||
#include "rcxml.h"
 | 
			
		||||
 | 
			
		||||
struct server server = { 0 };
 | 
			
		||||
struct rcxml rc = { 0 };
 | 
			
		||||
 | 
			
		||||
int main(int argc, char *argv[])
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -23,6 +25,10 @@ int main(int argc, char *argv[])
 | 
			
		|||
		return 0;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	rcxml_init(&rc);
 | 
			
		||||
	rcxml_set_verbose();
 | 
			
		||||
	rcxml_read("data/rc.xml");
 | 
			
		||||
 | 
			
		||||
	/* Wayland requires XDG_RUNTIME_DIR to be set */
 | 
			
		||||
	if (!getenv("XDG_RUNTIME_DIR")) {
 | 
			
		||||
		wlr_log(WLR_ERROR, "XDG_RUNTIME_DIR is not set");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue