]> git.proxmox.com Git - ceph.git/blob - ceph/src/include/ceph_fuse.h
45881930b87b4eb15dfc6288df5aa2431401f60e
[ceph.git] / ceph / src / include / ceph_fuse.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3 /*
4 * Ceph - scalable distributed file system
5 *
6 * Copyright (C) 2012 Inktank Storage, Inc.
7 * Copyright (C) 2014 Red Hat <contact@redhat.com>
8 *
9 * This is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License version 2.1, as published by the Free Software
12 * Foundation. See file COPYING.
13 */
14 #ifndef CEPH_FUSE_H
15 #define CEPH_FUSE_H
16
17 #define FUSE_USE_VERSION 30
18 #include "acconfig.h"
19 #include <fuse.h>
20
21 static inline int filler_compat(fuse_fill_dir_t filler,
22 void *buf, const char *name,
23 const struct stat *stbuf,
24 off_t off)
25 {
26 return filler(buf, name, stbuf, off
27 #if FUSE_VERSION >= FUSE_MAKE_VERSION(3, 0)
28 , static_cast<enum fuse_fill_dir_flags>(0)
29 #endif
30 );
31 }
32 #endif /* CEPH_FUSE_H */