-
Notifications
You must be signed in to change notification settings - Fork 13
/
main.h
55 lines (38 loc) · 1.18 KB
/
main.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
43
44
45
46
47
48
49
50
51
52
53
54
55
//
// main.h
// TaskExplorer
//
// Created by Patrick Wardle on 12/16/18.
//
#ifndef main_h
#define main_h
#import "Consts.h"
#import "Filter.h"
#import "Utilities.h"
#import "VirusTotal.h"
#import "AppDelegate.h"
#import "TaskEnumerator.h"
#import <Cocoa/Cocoa.h>
//(privacy) protected directories
NSString * const PROTECTED_DIRECTORIES[] = {@"~/Library/Application Support/AddressBook", @"~/Library/Calendars", @"~/Pictures", @"~/Library/Mail", @"~/Library/Messages", @"~/Library/Safari", @"~/Library/Cookies", @"~/Library/HomeKit", @"~/Library/IdentityServices", @"~/Library/Metadata/CoreSpotlight", @"~/Library/PersonalizationPortrait", @"~/Library/Suggestions"};
/* GLOBALS */
//task enumerator obj
TaskEnumerator* taskEnumerator = nil;
//virustotal obj
VirusTotal* virusTotal = nil;
//network connected flag
BOOL isConnected = NO;
//cmdline flag
BOOL cmdlineMode = NO;
//(privacy) protected directories
NSArray* protectedDirectories = nil;
/* FUNCTIONS */
//print usage
void usage(void);
//perform a cmdline actions
void cmdlineInterface(void);
//block until vt queries are done
void completeVTQuery(void);
//pretty print JSON
void prettyPrintJSON(NSString* output);
#endif /* main_h */