librpc/rpc: Add windows propertyset info and associated accessor and helper api.
[Samba.git] / librpc / wsp / wsp_util.h
blob7b208f964254b79bc145729d5b0c2443ec47c8e7
1 /*
2 * Unix SMB/CIFS implementation.
4 * Window Search Service
6 * Copyright (c) Noel Power
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, see <http://www.gnu.org/licenses/>.
21 #ifndef __LIBRPC_WSP_UTIL_H__
22 #define __LIBRPC_WSP_UTIL__H__
24 #include "librpc/gen_ndr/misc.h"
26 struct safearraybound;
27 struct wsp_cfullpropspec;
28 struct wsp_crestriction;
30 struct full_propset_info {
31 uint32_t id;
32 const char *name;
33 uint16_t vtype;
34 bool extra_info;
35 bool in_inverted_index;
36 bool is_column;
37 bool can_col_be_indexed;
38 uint16_t max_size;
41 struct full_guid_propset {
42 struct GUID guid;
43 const struct full_propset_info *prop_info;
46 extern const struct full_guid_propset full_propertyset[];
48 char *prop_from_fullprop(TALLOC_CTX *ctx, struct wsp_cfullpropspec *fullprop);
49 const struct full_propset_info *get_prop_info(const char *prop_name);
50 const struct full_propset_info *get_propset_info_with_guid(
51 const char *prop_name,
52 struct GUID *guid);
54 struct wsp_cfullpropspec *get_full_prop(struct wsp_crestriction *restriction);
55 #endif /* __LIBRPC_WSP_UTIL_H__ */