idl/ioctl: change QAR response array to a DATA_BLOB
[samba.git] / source3 / lib / readdir_attr.h
1 /*
2  * Fetch filesystem metadata in readdir/marshall context
3  *
4  * Copyright (C) Ralph Boehme 2014
5  *
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.
10  *
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.
15  *
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/>.
18  */
19
20 #ifndef _READDIR_ATTR_H
21 #define _READDIR_ATTR_H
22
23 enum readdir_attr_type {RDATTR_NONE, RDATTR_AAPL};
24
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;
35 };
36
37 #endif  /* _READDIR_ATTR_H */