-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.h
42 lines (34 loc) · 1.21 KB
/
options.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
/*
* This code is provided solely for the personal and private use of students
* taking the CSC369H course at the University of Toronto. Copying for purposes
* other than this use is expressly prohibited. All forms of distribution of
* this code, including but not limited to public repositories on GitHub,
* GitLab, Bitbucket, or any other online platform, whether as given or with
* any changes, are expressly prohibited.
*
* Authors: Alexey Khrabrov, Karen Reid, Angela Demke Brown
*
* All of the files in this directory and all subdirectories are:
* Copyright (c) 2022 Angela Demke Brown
*/
/**
* CSC369 Assignment 4 - vsfs command line options parser header file.
*/
#pragma once
#include <stdbool.h>
#include <fuse_opt.h>
/** vsfs command line options. */
typedef struct vsfs_opts {
/** vsfs image file path. */
const char *img_path;
/** Print help and exit. FUSE option. */
int help;
} vsfs_opts;
/**
* Parse vsfs command line options.
*
* @param args pointer to 'struct fuse_args' with the program arguments.
* @param args pointer to the options struct that receives the result.
* @return true on success; false on failure.
*/
bool vsfs_opt_parse(struct fuse_args *args, vsfs_opts *opts);