summaryrefslogtreecommitdiff
path: root/src/VX-GAMBLEGROUND.h
blob: 6c63f2150ee516134a0e65c346c3d36d2c838b29 (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef __SLOTS__VXGAMBLEGROUND_H__1443534935301
#define __SLOTS__VXGAMBLEGROUND_H__1443534935301

#include "screen.h"
#include "search.h"

struct arguments {
    char *inputpass;
    int flags;
};
#define SKIPSLOTS   0x1
#define SKIPENC     0x2

// This will later be changed to "~/"
#define FILESCAN_START "~/"

#define PHRASESIZE 32
int genphrase(char *phrase, size_t phrasesize);

struct bullshit {
    struct sigaction handler;
    int row, col, randphrase;
    char passphrase[PHRASESIZE + 1];

    WINDOW *banner, *menuholder;
    ITEM *items[STATIC_ARRSIZE(menu_choices) + 1];
    MENU *menu;

    struct slotholder slots;
    struct params params;
};

struct sande {
    struct nodelist* scanned;
    const char *STARTPATH; 
    int (*cmp)(const struct dirent **, const struct dirent **);

    const char *passphrase;
};

#endif