Debian Codegraph @

lib/grn_scanner.h

raw symbols SCIP
1 /*
2 Copyright(C) 2015-2016 Brazil
3 Copyright(C) 2021 Sutou Kouhei <[email protected]>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #pragma once
21
22 #include "grn_expr.h"
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 typedef struct _grn_scaner {
29 grn_obj *expr;
30 grn_obj *source_expr;
31 scan_info **sis;
32 uint32_t n_sis;
33 } grn_scanner;
34
35 grn_scanner *
36 grn_scanner_open(grn_ctx *ctx,
37 grn_obj *expr,
38 grn_operator op,
39 bool record_exist);
40 void
41 grn_scanner_close(grn_ctx *ctx, grn_scanner *scanner);
42
43 #ifdef __cplusplus
44 }
45 #endif