29 lines
611 B
C
29 lines
611 B
C
|
|
/* retoor <retoor@molodetz.nl> */
|
||
|
|
|
||
|
|
#ifndef FUSEDAV_CONFIG_H
|
||
|
|
#define FUSEDAV_CONFIG_H
|
||
|
|
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
#define DEFAULT_CACHE_TTL_MS 30000
|
||
|
|
#define DEFAULT_TIMEOUT_SEC 10
|
||
|
|
#define DEFAULT_MAX_CACHE_ENTRIES 1024
|
||
|
|
#define DEFAULT_WRITE_BUFFER_SIZE (1024 * 1024)
|
||
|
|
|
||
|
|
typedef struct {
|
||
|
|
char *webdav_url;
|
||
|
|
char *username;
|
||
|
|
char *password;
|
||
|
|
char *mount_point;
|
||
|
|
int cache_ttl_ms;
|
||
|
|
int request_timeout_sec;
|
||
|
|
int foreground;
|
||
|
|
int debug;
|
||
|
|
} config_t;
|
||
|
|
|
||
|
|
int config_parse(int argc, char *argv[], config_t *cfg);
|
||
|
|
void config_free(config_t *cfg);
|
||
|
|
void config_print_usage(const char *program_name);
|
||
|
|
|
||
|
|
#endif
|