Defined the first states in ncdu.h

This commit is contained in:
Yorhel 2009-04-08 19:09:24 +02:00
parent e45afea1d6
commit c89686a8ab

View file

@ -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 *);