mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-12 17:08:39 -09:00
Defined the first states in ncdu.h
This commit is contained in:
parent
e45afea1d6
commit
c89686a8ab
1 changed files with 13 additions and 1 deletions
14
src/ncdu.h
14
src/ncdu.h
|
|
@ -116,6 +116,12 @@
|
|||
#define BF_AS 0x40 /* show apparent sizes instead of disk usage */
|
||||
#define BF_INFO 0x80 /* show file information window */
|
||||
|
||||
/* States */
|
||||
#define ST_CALC 0
|
||||
#define ST_BROWSE 1
|
||||
#define ST_DEL 2
|
||||
#define ST_HELP 3
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
|
@ -129,6 +135,12 @@ struct dir {
|
|||
unsigned char flags;
|
||||
};
|
||||
|
||||
struct state {
|
||||
int st; /* SC_x */
|
||||
/* TODO: information structs for the states */
|
||||
};
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* G L O B A L V A R I A B L E S
|
||||
|
|
@ -156,7 +168,7 @@ extern char *fullsize(const off_t);
|
|||
extern void ncresize(void);
|
||||
extern void nccreate(int, int, char *);
|
||||
extern void ncprint(int, int, char *, ...);
|
||||
extern struct dir * freedir(struct dir *);
|
||||
extern struct dir *freedir(struct dir *);
|
||||
extern char *getpath(struct dir *, char *);
|
||||
/* calc.c */
|
||||
extern struct dir *showCalc(char *);
|
||||
|
|
|
|||
Loading…
Reference in a new issue