summaryrefslogtreecommitdiffstats
path: root/src/include/ceph_fuse.h
blob: 45881930b87b4eb15dfc6288df5aa2431401f60e (plain)
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
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- 
// vim: ts=8 sw=2 smarttab
/*
 * Ceph - scalable distributed file system
 *
 * Copyright (C) 2012 Inktank Storage, Inc.
 * Copyright (C) 2014 Red Hat <contact@redhat.com>
 *
 * This is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 2.1, as published by the Free Software 
 * Foundation.  See file COPYING.
 */
#ifndef CEPH_FUSE_H
#define CEPH_FUSE_H

#define FUSE_USE_VERSION 30
#include "acconfig.h"
#include <fuse.h>

static inline int filler_compat(fuse_fill_dir_t filler,
                                void *buf, const char *name,
                                const struct stat *stbuf,
                                off_t off)
{
  return filler(buf, name, stbuf, off
#if FUSE_VERSION >= FUSE_MAKE_VERSION(3, 0)
                , static_cast<enum fuse_fill_dir_flags>(0)
#endif
        );
}
#endif /* CEPH_FUSE_H */