#ifndef _UNIT_H #define _UNIT_H #include #include #define UNIT_DELETE(unit) { \ unit_delete(unit); \ unit = NULL; \ } typedef enum { UNIT_GLOBAL = 0, UNIT_MONITOR = 1, UNIT_TAG = 2, } UnitKind; typedef struct Unit *Unit; Unit unit_new(UnitKind kind, Unit parent); void unit_delete(Unit unit); bool unit_get_show_bar(Unit unit); bool unit_toggle_show_bar(Unit unit); #endif // _UNIT_H