-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.h
33 lines (25 loc) · 861 Bytes
/
params.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
/*
Copyright (C) 2012 Joseph J. Pfeiffer, Jr., Ph.D. <[email protected]>
This program can be distributed under the terms of the GNU GPLv3.
See the file COPYING.
There are a couple of symbols that need to be #defined before
#including all the headers.
*/
#ifndef _PARAMS_H_
#define _PARAMS_H_
// The FUSE API has been changed a number of times. So, our code
// needs to define the version of the API that we assume. As of this
// writing, the most current API version is 26
#define FUSE_USE_VERSION 26
// need this to get pwrite(). I have to use setvbuf() instead of
// setlinebuf() later in consequence.
#define _XOPEN_SOURCE 500
// maintain bbfs state in here
#include <limits.h>
#include <stdio.h>
struct bb_state {
FILE *logfile;
char *rootdir;
};
#define BB_DATA ((struct bb_state *) fuse_get_context()->private_data)
#endif