aboutsummaryrefslogtreecommitdiff
path: root/analyzer/utils/fs.h
blob: 8083ddcd1b7e80835c7814781e0f7dfab094a1b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// utils/fs.h
// functions for operating on the file system, i.e. creating directories, writing files, etc.

// get main directory used by the program
// params:
//      - main_dir - buffer to save the directory to
extern void get_main_dir(char *main_dir);

// get directory to save the .pcap files to
// params:
//      - capture_dir - buffer to save the directory to
extern void get_capture_dir(char *capture_dir);

// get directory of save data of the program
// params:
//      - saves_dir - buffer to save the directory to
extern void get_saves_dir(char *saves_dir);

// create directories that will be used by the program
extern void create_necessary_directories();