| 1 | /* |
| 2 | Copyright (C) 2011-2018 Brazil |
| 3 | Copyright (C) 2018-2026 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.h"cxx . . $ `<file>/lib/grn.h`/ |
| 23 | #include "grn_db.h"cxx . . $ `<file>/lib/grn_db.h`/ |
| 24 | #include "grn_table_module.h"cxx . . $ `<file>/lib/grn_table_module.h`/ |
| 25 | |
| 26 | #ifdef __cplusplus |
| 27 | extern "C" { |
| 28 | #endif |
| 29 | |
| 30 | struct _grn_datcxx . . $ _grn_dat# { |
| 31 | grn_db_objcxx . . $ grn_db_obj# objcxx . . $ _grn_dat#obj.; |
| 32 | grn_iocxx . . $ grn_io# *iocxx . . $ _grn_dat#io.; |
| 33 | struct grn_dat_headercxx . . $ grn_dat_header# *headercxx . . $ _grn_dat#header.; |
| 34 | uint32_tcxx . . $ uint32_t# file_idcxx . . $ _grn_dat#file_id.; |
| 35 | grn_encodingcxx . . $ grn_encoding# encodingcxx . . $ _grn_dat#encoding.; |
| 36 | void *triecxx . . $ _grn_dat#trie.; |
| 37 | void *old_triecxx . . $ _grn_dat#old_trie.; |
| 38 | grn_table_modulecxx . . $ grn_table_module# tokenizercxx . . $ _grn_dat#tokenizer.; |
| 39 | grn_objcxx . . $ grn_obj# normalizerscxx . . $ _grn_dat#normalizers.; |
| 40 | grn_objcxx . . $ grn_obj# token_filterscxx . . $ _grn_dat#token_filters.; |
| 41 | /* For backward compatibility */ |
| 42 | grn_objcxx . . $ grn_obj# token_filter_procscxx . . $ _grn_dat#token_filter_procs.; |
| 43 | grn_objcxx . . $ grn_obj# extractorscxx . . $ _grn_dat#extractors.; |
| 44 | grn_critical_sectioncxx . . $ grn_critical_section# lockcxx . . $ _grn_dat#lock.; |
| 45 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! is_dirtycxx . . $ _grn_dat#is_dirty.; |
| 46 | }; |
| 47 | |
| 48 | struct grn_dat_headercxx . . $ grn_dat_header# { |
| 49 | uint32_tcxx . . $ uint32_t# flagscxx . . $ grn_dat_header#flags.; |
| 50 | grn_encodingcxx . . $ grn_encoding# encodingcxx . . $ grn_dat_header#encoding.; |
| 51 | grn_idcxx . . $ grn_id# tokenizercxx . . $ grn_dat_header#tokenizer.; |
| 52 | uint32_tcxx . . $ uint32_t# file_idcxx . . $ grn_dat_header#file_id.; |
| 53 | grn_idcxx . . $ grn_id# normalizercxx . . $ grn_dat_header#normalizer.; |
| 54 | uint32_tcxx . . $ uint32_t# n_dirty_openscxx . . $ grn_dat_header#n_dirty_opens.; |
| 55 | uint64_tcxx . . $ uint64_t# wal_idcxx . . $ grn_dat_header#wal_id.; |
| 56 | uint32_tcxx . . $ uint32_t# reservedcxx . . $ grn_dat_header#reserved.[232]; |
| 57 | }; |
| 58 | |
| 59 | struct _grn_dat_cursorcxx . . $ _grn_dat_cursor# { |
| 60 | grn_db_objcxx . . $ grn_db_obj# objcxx . . $ _grn_dat_cursor#obj.; |
| 61 | grn_datcxx . . $ grn_dat# *datcxx . . $ _grn_dat_cursor#dat.; |
| 62 | void *cursorcxx . . $ _grn_dat_cursor#cursor.; |
| 63 | const void *keycxx . . $ _grn_dat_cursor#key.; |
| 64 | grn_idcxx . . $ grn_id# curr_reccxx . . $ _grn_dat_cursor#curr_rec.; |
| 65 | }; |
| 66 | |
| 67 | GRN_APIcxx . . $ `lib/grn.h:84:13`! grn_idcxx . . $ grn_id# |
| 68 | grn_dat_curr_idcxx . . $ grn_dat_curr_id(f98f87c4ee5a4de).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 69 | |
| 70 | /* |
| 71 | Currently, grn_dat_truncate() is available if the grn_dat object is |
| 72 | associated with a file. |
| 73 | */ |
| 74 | GRN_APIcxx . . $ `lib/grn.h:84:13`! grn_rccxx . . $ grn_rc# |
| 75 | grn_dat_truncatecxx . . $ grn_dat_truncate(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 76 | |
| 77 | GRN_APIcxx . . $ `lib/grn.h:84:13`! const char * |
| 78 | _grn_dat_keycxx . . $ _grn_dat_key(6c1fc6d78510313b).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat, grn_idcxx . . $ grn_id# id, uint32_tcxx . . $ uint32_t# *key_size); |
| 79 | GRN_APIcxx . . $ `lib/grn.h:84:13`! grn_idcxx . . $ grn_id# |
| 80 | grn_dat_nextcxx . . $ grn_dat_next(412e3924d9e1e150).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat, grn_idcxx . . $ grn_id# id); |
| 81 | GRN_APIcxx . . $ `lib/grn.h:84:13`! grn_idcxx . . $ grn_id# |
| 82 | grn_dat_atcxx . . $ grn_dat_at(412e3924d9e1e150).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat, grn_idcxx . . $ grn_id# id); |
| 83 | |
| 84 | GRN_APIcxx . . $ `lib/grn.h:84:13`! grn_rccxx . . $ grn_rc# |
| 85 | grn_dat_clear_status_flagscxx . . $ grn_dat_clear_status_flags(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 86 | |
| 87 | /* |
| 88 | Currently, grn_dat_repair() is available if the grn_dat object is associated |
| 89 | with a file. |
| 90 | */ |
| 91 | GRN_APIcxx . . $ `lib/grn.h:84:13`! grn_rccxx . . $ grn_rc# |
| 92 | grn_dat_repaircxx . . $ grn_dat_repair(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 93 | |
| 94 | GRN_APIcxx . . $ `lib/grn.h:84:13`! grn_rccxx . . $ grn_rc# |
| 95 | grn_dat_flushcxx . . $ grn_dat_flush(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 96 | |
| 97 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! |
| 98 | grn_dat_is_changingcxx . . $ grn_dat_is_changing(80a67896fab8adf8).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 99 | |
| 100 | grn_rccxx . . $ grn_rc# |
| 101 | grn_dat_dirtycxx . . $ grn_dat_dirty(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 102 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! |
| 103 | grn_dat_is_dirtycxx . . $ grn_dat_is_dirty(80a67896fab8adf8).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 104 | grn_rccxx . . $ grn_rc# |
| 105 | grn_dat_cleancxx . . $ grn_dat_clean(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 106 | grn_rccxx . . $ grn_rc# |
| 107 | grn_dat_clear_dirtycxx . . $ grn_dat_clear_dirty(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 108 | |
| 109 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! |
| 110 | grn_dat_is_corruptcxx . . $ grn_dat_is_corrupt(80a67896fab8adf8).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 111 | |
| 112 | size_t |
| 113 | grn_dat_get_disk_usagecxx . . $ grn_dat_get_disk_usage(d1690dc68fac5dd8).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 114 | |
| 115 | grn_rccxx . . $ grn_rc# |
| 116 | grn_dat_wal_recovercxx . . $ grn_dat_wal_recover(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 117 | grn_rccxx . . $ grn_rc# |
| 118 | grn_dat_warmcxx . . $ grn_dat_warm(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 119 | |
| 120 | #ifdef __cplusplus |
| 121 | } |
| 122 | #endif |