lib: Add msghdr_prep_recv_fds
[Samba.git] / source3 / lib / readdir_attr.h
blobd2a814dba3523210e33dd83a2c8d13a26e56e7ed
1 /*
2 * Fetch filesystem metadata in readdir/marshall context
4 * Copyright (C) Ralph Boehme 2014
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef _READDIR_ATTR_H
21 #define _READDIR_ATTR_H
23 enum readdir_attr_type {RDATTR_NONE, RDATTR_AAPL};
25 struct readdir_attr_data {
26 enum readdir_attr_type type;
27 union attr_data {
28 struct aapl {
29 uint64_t rfork_size;
30 char finder_info[16];
31 uint32_t max_access;
32 mode_t unix_mode;
33 } aapl;
34 } attr_data;
37 #endif /* _READDIR_ATTR_H */