1 /*
2   Copyright(C) 2010-2017 Brazil
3 
4   This library is free software; you can redistribute it and/or
5   modify it under the terms of the GNU Lesser General Public
6   License as published by the Free Software Foundation; either
7   version 2.1 of the License, or (at your option) any later version.
8 
9   This library is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   Lesser General Public License for more details.
13 
14   You should have received a copy of the GNU Lesser General Public
15   License along with this library; if not, write to the Free Software
16   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17 */
18 module groonga_d.util;
19 
20 
21 private static import groonga_d.geo;
22 private static import groonga_d.groonga;
23 
24 extern(C):
25 nothrow @nogc:
26 
27 //GRN_API
28 groonga_d.groonga.grn_obj* grn_inspect(groonga_d.groonga.grn_ctx* ctx, groonga_d.groonga.grn_obj* buffer, groonga_d.groonga.grn_obj* obj);
29 
30 //GRN_API
31 groonga_d.groonga.grn_obj* grn_inspect_indented(groonga_d.groonga.grn_ctx* ctx, groonga_d.groonga.grn_obj* buffer, groonga_d.groonga.grn_obj* obj, const (char)* indent);
32 
33 //GRN_API
34 groonga_d.groonga.grn_obj* grn_inspect_limited(groonga_d.groonga.grn_ctx* ctx, groonga_d.groonga.grn_obj* buffer, groonga_d.groonga.grn_obj* obj);
35 
36 //GRN_API
37 groonga_d.groonga.grn_obj* grn_inspect_name(groonga_d.groonga.grn_ctx* ctx, groonga_d.groonga.grn_obj* buffer, groonga_d.groonga.grn_obj* obj);
38 
39 //GRN_API
40 groonga_d.groonga.grn_obj* grn_inspect_encoding(groonga_d.groonga.grn_ctx* ctx, groonga_d.groonga.grn_obj* buffer, groonga_d.groonga.grn_encoding encoding);
41 
42 //GRN_API
43 groonga_d.groonga.grn_obj* grn_inspect_type(groonga_d.groonga.grn_ctx* ctx, groonga_d.groonga.grn_obj* buffer, ubyte type);
44 
45 //GRN_API
46 groonga_d.groonga.grn_obj* grn_inspect_query_log_flags(groonga_d.groonga.grn_ctx* ctx, groonga_d.groonga.grn_obj* buffer, uint flags);
47 
48 //GRN_API
49 groonga_d.groonga.grn_obj* grn_inspect_key(groonga_d.groonga.grn_ctx* ctx, groonga_d.groonga.grn_obj* buffer, groonga_d.groonga.grn_obj* table, const (void)* key, uint key_size);
50 
51 //GRN_API
52 void grn_p(groonga_d.groonga.grn_ctx* ctx, groonga_d.groonga.grn_obj* obj);
53 
54 //GRN_API
55 void grn_p_geo_point(groonga_d.groonga.grn_ctx* ctx, groonga_d.geo.grn_geo_point* point);
56 
57 //GRN_API
58 void grn_p_ii_values(groonga_d.groonga.grn_ctx* ctx, groonga_d.groonga.grn_obj* obj);