-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparams.h
36 lines (28 loc) · 815 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
33
34
35
36
// 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
#include <limits.h>
#include <stdio.h>
#include "transport.h"
#include <libmemcached/memcached.h>
static const int OBJECTID_SIZE = 44;
typedef struct FS_LIST {
int fd;
char objectid[44];
void *next;
} fd_list;
struct atmos_state {
FILE *logfile;
char *rootdir;
fd_list *head;
memcached_st *attr_cache;
memcached_st *block_cache;
credentials *c;
};
#define ATMOS_DATA ((struct atmos_state *) fuse_get_context()->private_data)
#endif