fs-test.c revision 140afad728d78c56fb4c0256f94eb81a213688db
/* Copyright (c) 2016 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream.h"
#include "ostream.h"
#include "test-common.h"
#include "fs-test.h"
static struct fs *fs_test_alloc(void)
{
}
static int
{
return 0;
}
{
}
{
return fs->properties;
}
static struct fs_file *
{
struct test_fs_file *file;
}
{
}
{
}
{
}
static void
void *context)
{
}
{
return 0;
}
static void
const char *value)
{
}
static int
{
return 0;
}
{
return TRUE;
}
{
}
static struct istream *
{
return i_stream_create_error(ENOENT);
return input;
}
{
}
{
if (!success)
}
static int
{
return 0;
return 1;
}
{
}
{
}
{
return -1;
}
return 0;
}
{
return -1;
}
return 0;
}
{
return -1;
return 0;
}
{
return -1;
}
return 0;
}
static struct fs_iter *
enum fs_iter_flags flags)
{
struct test_fs_iter *iter;
}
{
const char *const *files, *p;
continue;
if (p == NULL)
return fname;
if (p[1] == '\0')
continue; /* dir/ */
return p+1;
}
if (p == NULL)
continue;
if (len == 0)
continue;
if (len == prev_dir_len &&
continue;
}
return NULL;
}
{
return ret;
}
{
}
for (; n > 0; n--) {
}
return (struct test_fs_file *)file;
}
const struct fs fs_class_test = {
.name = "test",
.v = {
NULL,
NULL,
}
};