1 | /* -*- c-basic-offset: 2 -*- */ |
2 | /* |
3 | Copyright(C) 2016-2017 Brazil |
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 | struct _grn_window { |
23 | grn_obj *table; |
24 | grn_obj *grouped_table; |
25 | grn_obj ids; |
26 | size_t n_ids; |
27 | ssize_t current_index; |
28 | grn_window_direction direction; |
29 | grn_bool is_sorted; |
30 | }; |
31 | |
32 | grn_rc grn_window_init(grn_ctx *ctx, |
33 | grn_window *window, |
34 | grn_obj *table, |
35 | grn_bool is_sorted); |
36 | grn_rc grn_window_fin(grn_ctx *ctx, grn_window *window); |
37 | |
38 | #ifdef __cplusplus |
39 | } |
40 | #endif |
41 | |