#ifndef FS_API_PRIVATE_H
#define FS_API_PRIVATE_H
#include "fs-api.h"
#include "fs-wrapper.h"
#include "module-context.h"
struct fs_api_module_register {
unsigned int id;
};
union fs_api_module_context {
};
extern struct fs_api_module_register fs_api_module_register;
struct fs_vfuncs {
const struct fs_settings *set);
void *context);
const char *value);
/* After write_stream_finish() is called once, all the following
(async) calls will have success==TRUE. */
enum fs_iter_flags flags);
};
struct fs {
const char *name;
struct fs_vfuncs v;
char *temp_path_prefix;
int refcount;
/* may be used by fs_wait_async() to do the waiting */
unsigned int files_open_count;
};
struct fs_file {
/* linked list of all files */
char *path;
void *write_digest;
};
struct fs_lock {
};
struct fs_iter {
/* linked list of all iters */
bool async_have_more;
void *async_context;
};
extern const struct fs fs_class_dict;
extern const struct fs fs_class_posix;
extern const struct fs fs_class_randomfail;
extern const struct fs fs_class_metawrap;
extern const struct fs fs_class_sis;
extern const struct fs fs_class_sis_queue;
extern const struct fs fs_class_test;
const char *key);
struct fs_file *
struct fs_iter *
/* Same as fs_write_stream_abort_error(), except it closes the *parent* file
and error is left untouched */
#endif