include/: refactor header files more

This commit is contained in:
Johan Malm 2020-08-03 20:56:38 +01:00
parent 53266a0d5a
commit 4d1363dcae
32 changed files with 130 additions and 78 deletions

View file

@ -1,6 +1,6 @@
#ifndef CONFIG_DIR_H
#define CONFIG_DIR_H
#ifndef __LABWC_CONFIG_DIR_H
#define __LABWC_CONFIG_DIR_H
char *config_dir(void);
#endif /* CONFIG_DIR_H */
#endif /* __LABWC_CONFIG_DIR_H */

18
include/config/keybind.h Normal file
View file

@ -0,0 +1,18 @@
#ifndef __LABWC_KEYBIND_H
#define __LABWC_KEYBIND_H
#include <wlr/types/wlr_keyboard.h>
#include <xkbcommon/xkbcommon.h>
struct keybind {
uint32_t modifiers;
xkb_keysym_t *keysyms;
size_t keysyms_len;
char *action;
char *command;
struct wl_list link;
};
struct keybind *keybind_add(const char *keybind);
#endif /* __LABWC_KEYBIND_H */

24
include/config/rcxml.h Normal file
View file

@ -0,0 +1,24 @@
#ifndef __LABWC_RCXML_H
#define __LABWC_RCXML_H
#include <stdio.h>
#include <stdbool.h>
#include <wayland-server-core.h>
#include "common/buf.h"
struct rcxml {
bool client_side_decorations;
char *theme_name;
char *font_name_activewindow;
int font_size_activewindow;
struct wl_list keybinds;
};
extern struct rcxml rc;
void rcxml_parse_xml(struct buf *b);
void rcxml_read(const char *filename);
void rcxml_get_nodenames(struct buf *b);
#endif /* __LABWC_RCXML_H */