modules: put all modules in separate sub directories

This commit is contained in:
Daniel Eklöf 2018-11-17 23:15:32 +01:00
parent 97028ae28c
commit 081bccf06d
8 changed files with 15 additions and 15 deletions

View file

@ -28,9 +28,9 @@ add_executable(foobar
particles/string.c particles/string.h
particles/list.c particles/list.h
modules/label.c modules/label.h
modules/clock.c modules/clock.h
modules/xwindow.c modules/xwindow.h
modules/label/label.c modules/label/label.h
modules/clock/clock.c modules/clock/clock.h
modules/xwindow/xwindow.c modules/xwindow/xwindow.h
)
target_compile_definitions(foobar PRIVATE _GNU_SOURCE)

View file

@ -12,9 +12,9 @@
#include "particles/list.h"
#include "module.h"
#include "modules/label.h"
#include "modules/clock.h"
#include "modules/xwindow.h"
#include "modules/label/label.h"
#include "modules/clock/clock.h"
#include "modules/xwindow/xwindow.h"
static uint8_t
hex_nibble(char hex)

View file

@ -5,7 +5,7 @@
#include <poll.h>
#include "../bar.h"
#include "../../bar.h"
struct private {
struct particle *label;

View file

@ -1,6 +1,6 @@
#pragma once
#include "../module.h"
#include "../particle.h"
#include "../../module.h"
#include "../../particle.h"
struct module *module_clock(struct particle *label);

View file

@ -1,6 +1,6 @@
#pragma once
#include "../module.h"
#include "../particle.h"
#include "../../module.h"
#include "../../particle.h"
struct module *module_label(struct particle *label);

View file

@ -14,8 +14,8 @@
#include <xcb/xcb.h>
#include <xcb/xcb_event.h>
#include "../bar.h"
#include "../xcb.h"
#include "../../bar.h"
#include "../../xcb.h"
struct private {
/* Accessed from bar thread only */

View file

@ -1,6 +1,6 @@
#pragma once
#include "../module.h"
#include "../particle.h"
#include "../../module.h"
#include "../../particle.h"
struct module *module_xwindow(struct particle *label);