mirror of
https://github.com/labwc/labwc.git
synced 2026-02-16 22:05:27 -05:00
src/config/rcxml.c: parse xml from buffer
Avoid unit tests writing to/from files by using xmlParseMemory() instead of xmlReadFile().
This commit is contained in:
parent
40c0b169ef
commit
bc51e0ad2f
10 changed files with 86 additions and 9 deletions
|
|
@ -4,6 +4,8 @@
|
|||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "buf.h"
|
||||
|
||||
struct rcxml {
|
||||
bool client_side_decorations;
|
||||
};
|
||||
|
|
@ -11,6 +13,7 @@ struct rcxml {
|
|||
extern struct rcxml rc;
|
||||
|
||||
void rcxml_init(struct rcxml *rc);
|
||||
void rcxml_parse_xml(struct buf *b);
|
||||
void rcxml_read(const char *filename);
|
||||
void rcxml_set_verbose(void);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue