blob: 5939b2ed51b676c08d674a844346ef85a3bc96fe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef SF_FM_H
#define SF_FM_H
#include <limits.h>
#include <ncurses.h>
#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 */
|