polytreewm/src/unit.h

21 lines
276 B
C
Raw Normal View History

2021-11-17 02:56:19 +00:00
#ifndef _UNIT_H
#define _UNIT_H
#include <stdbool.h>
#include <stddef.h>
#define UNIT_DELETE(unit) { \
unit_delete(unit); \
unit = NULL; \
}
typedef struct Unit {
bool show_bar;
} *Unit;
Unit unit_new();
void unit_delete(Unit unit);
#endif // _UNIT_H