Skip to content

Commit 9e4b9fd

Browse files
committed
Split out xml.h from tweaks.h
1 parent d1c3813 commit 9e4b9fd

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

find-themes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ static struct {
103103
{ NULL, "/opt/share" },
104104
};
105105

106+
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
107+
106108
void
107109
find_themes(struct themes *themes, const char *middle, const char *end)
108110
{

main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <strings.h>
66
#include <sys/stat.h>
77
#include "tweaks.h"
8+
#include "xml.h"
89

910
static GtkWidget *corner_radius;
1011
static GtkWidget *openbox_theme_name;

tweaks.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,6 @@ struct themes {
1212
int nr, alloc;
1313
};
1414

15-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
16-
1715
void find_themes(struct themes *themes, const char *middle, const char *end);
1816

19-
void xml_init(const char *filename);
20-
void xml_save(void);
21-
void xml_finish(void);
22-
void xml_set(char *nodename, char *value);
23-
void xml_set_num(char *nodename, double value);
24-
char *xml_get(char *nodename);
25-
int xml_get_int(char *nodename);
26-
int xml_get_bool_text(char *nodename);
27-
2817
#endif /* __TWEAKS_H */

xml.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#ifndef __XML_H
2+
#define __XML_H
3+
4+
void xml_init(const char *filename);
5+
void xml_save(void);
6+
void xml_finish(void);
7+
void xml_set(char *nodename, char *value);
8+
void xml_set_num(char *nodename, double value);
9+
char *xml_get(char *nodename);
10+
int xml_get_int(char *nodename);
11+
int xml_get_bool_text(char *nodename);
12+
13+
#endif /* __XML_H */

0 commit comments

Comments
 (0)