Read rc.xml and begin parsing

This commit is contained in:
Johan Malm 2020-06-05 23:04:54 +01:00
parent fdc131049c
commit 6166e9b370
12 changed files with 227 additions and 7 deletions

View file

@ -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");