-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlethe_types.h
42 lines (33 loc) · 1009 Bytes
/
lethe_types.h
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
42
/*
* Copyright (C) 2020 by Rafael Santiago
*
* Use of this source code is governed by GPL-v2 license that can
* be found in the COPYING file.
*
*/
#ifndef LETHE_LETHE_TYPES_H
#define LETHE_LETHE_TYPES_H 1
#include <lethe_libc.h>
typedef unsigned char (*lethe_randomizer)(void);
typedef enum {
kLetheDataOblivion = 0x1,
kLetheFileRemove = kLetheDataOblivion << 1,
kLetheCustomRandomizer = kLetheFileRemove << 1,
kLetheUserPrompt = kLetheCustomRandomizer << 1
}lethe_drop_type;
typedef enum {
kLetheErrorNone = 0,
kLetheErrorNullFile,
kLetheErrorNullDropType,
kLetheErrorUnableToAccess,
kLetheErrorOpenHasFailed,
kLetheErrorDataOblivionHasFailed,
kLetheErrorFileRemoveHasFailed,
kLetheErrorNothingToDrop,
kLetheErrorNr
}lethe_error_code;
extern int g_lethe_err;
extern char g_lethe_filepath[4096];
extern int g_lethe_rename_nr;
//extern lethe_stat g_lethe_stat;
#endif