#ifndef SF_FM_H #define SF_FM_H #include #include "wm.h" typedef struct { char name[256]; int is_dir; } file_item; void fm_getdir(fm_info* f); fm_info* fm_init(terminal* t); typedef struct { file_item *items; int count; int cap; int selected_idx; window *fm_l, *fm_r; char **cur_contents; char **next_dir_contents; char cwd[PATH_MAX]; } fm_info; #endif /* SF_FM_H */