-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathutils.h
More file actions
27 lines (22 loc) · 839 Bytes
/
utils.h
File metadata and controls
27 lines (22 loc) · 839 Bytes
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
#ifndef _UTILS_H
#define _UTILS_H
#ifndef kCFCoreFoundationVersionNumber_iOS_10_3
# define kCFCoreFoundationVersionNumber_iOS_10_3 1349.56
#endif
#ifndef kCFCoreFoundationVersionNumber_iOS_11_0
# define kCFCoreFoundationVersionNumber_iOS_11_0 1443.00
#endif
#ifndef bundleID
# define bundleID CFSTR("com.michael.TimeMachine")
#endif
CFDictionaryRef loadPrefs();
bool is_number(const char *num);
bool is_sealed(const char *mntpt);
CFNumberRef newInt(const int value);
int do_timemachine(const char *vol, const bool create, const int max_snapshot);
int snapshot_create(const char *vol, const char *snap);
bool snapshot_check(const char *vol, const char *snap);
int snapshot_delete(const char *vol, const char *snap);
int snapshot_rename(const char *vol, const char *snap, const char *nw);
void run_system(const char *cmd);
#endif