| 1 | /* -*- c-basic-offset: 2 -*- */cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_dat.h`/ |
| 2 | /* |
| 3 | Copyright(C) 2011-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 version 2.1 as published by the Free Software Foundation. |
| 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-1335 USA |
| 17 | */ |
| 18 | |
| 19 | #pragma once |
| 20 | |
| 21 | #include "grn.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn.h`/ |
| 22 | #include "grn_db.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_db.h`/ |
| 23 | |
| 24 | #ifdef __cpluspluscxx . . $ `<built-in>:471:9`! |
| 25 | extern "C" { |
| 26 | #endif |
| 27 | |
| 28 | struct _grn_datcxx . . $ _grn_dat# { |
| 29 | grn_db_objcxx . . $ grn_db_obj# objcxx . . $ _grn_dat#obj.; |
| 30 | grn_iocxx . . $ grn_io# *iocxx . . $ _grn_dat#io.; |
| 31 | struct grn_dat_headercxx . . $ grn_dat_header# *headercxx . . $ _grn_dat#header.; |
| 32 | uint32_tcxx . . $ uint32_t# file_idcxx . . $ _grn_dat#file_id.; |
| 33 | grn_encodingcxx . . $ grn_encoding# encodingcxx . . $ _grn_dat#encoding.; |
| 34 | void *triecxx . . $ _grn_dat#trie.; |
| 35 | void *old_triecxx . . $ _grn_dat#old_trie.; |
| 36 | grn_objcxx . . $ grn_obj# *tokenizercxx . . $ _grn_dat#tokenizer.; |
| 37 | grn_objcxx . . $ grn_obj# *normalizercxx . . $ _grn_dat#normalizer.; |
| 38 | grn_objcxx . . $ grn_obj# token_filterscxx . . $ _grn_dat#token_filters.; |
| 39 | grn_critical_sectioncxx . . $ grn_critical_section# lockcxx . . $ _grn_dat#lock.; |
| 40 | grn_boolcxx . . $ grn_bool# is_dirtycxx . . $ _grn_dat#is_dirty.; |
| 41 | }; |
| 42 | |
| 43 | struct grn_dat_headercxx . . $ grn_dat_header# { |
| 44 | uint32_tcxx . . $ uint32_t# flagscxx . . $ grn_dat_header#flags.; |
| 45 | grn_encodingcxx . . $ grn_encoding# encodingcxx . . $ grn_dat_header#encoding.; |
| 46 | grn_idcxx . . $ grn_id# tokenizercxx . . $ grn_dat_header#tokenizer.; |
| 47 | uint32_tcxx . . $ uint32_t# file_idcxx . . $ grn_dat_header#file_id.; |
| 48 | grn_idcxx . . $ grn_id# normalizercxx . . $ grn_dat_header#normalizer.; |
| 49 | uint32_tcxx . . $ uint32_t# n_dirty_openscxx . . $ grn_dat_header#n_dirty_opens.; |
| 50 | uint32_tcxx . . $ uint32_t# reservedcxx . . $ grn_dat_header#reserved.[234]; |
| 51 | }; |
| 52 | |
| 53 | struct _grn_dat_cursorcxx . . $ _grn_dat_cursor# { |
| 54 | grn_db_objcxx . . $ grn_db_obj# objcxx . . $ _grn_dat_cursor#obj.; |
| 55 | grn_datcxx . . $ grn_dat# *datcxx . . $ _grn_dat_cursor#dat.; |
| 56 | void *cursorcxx . . $ _grn_dat_cursor#cursor.; |
| 57 | const void *keycxx . . $ _grn_dat_cursor#key.; |
| 58 | grn_idcxx . . $ grn_id# curr_reccxx . . $ _grn_dat_cursor#curr_rec.; |
| 59 | }; |
| 60 | |
| 61 | GRN_APIcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:89:10`! grn_idcxx . . $ grn_id# grn_dat_curr_idcxx . . $ grn_dat_curr_id(f98f87c4ee5a4de).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 62 | |
| 63 | /* |
| 64 | Currently, grn_dat_truncate() is available if the grn_dat object is |
| 65 | associated with a file. |
| 66 | */ |
| 67 | GRN_APIcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:89:10`! grn_rccxx . . $ grn_rc# grn_dat_truncatecxx . . $ grn_dat_truncate(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 68 | |
| 69 | GRN_APIcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:89:10`! const char *_grn_dat_keycxx . . $ _grn_dat_key(6c1fc6d78510313b).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat, grn_idcxx . . $ grn_id# id, |
| 70 | uint32_tcxx . . $ uint32_t# *key_size); |
| 71 | GRN_APIcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:89:10`! grn_idcxx . . $ grn_id# grn_dat_nextcxx . . $ grn_dat_next(412e3924d9e1e150).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat, grn_idcxx . . $ grn_id# id); |
| 72 | GRN_APIcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:89:10`! grn_idcxx . . $ grn_id# grn_dat_atcxx . . $ grn_dat_at(412e3924d9e1e150).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat, grn_idcxx . . $ grn_id# id); |
| 73 | |
| 74 | GRN_APIcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:89:10`! grn_rccxx . . $ grn_rc# grn_dat_clear_status_flagscxx . . $ grn_dat_clear_status_flags(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 75 | |
| 76 | /* |
| 77 | Currently, grn_dat_repair() is available if the grn_dat object is associated |
| 78 | with a file. |
| 79 | */ |
| 80 | GRN_APIcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:89:10`! grn_rccxx . . $ grn_rc# grn_dat_repaircxx . . $ grn_dat_repair(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 81 | |
| 82 | GRN_APIcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:89:10`! grn_rccxx . . $ grn_rc# grn_dat_flushcxx . . $ grn_dat_flush(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 83 | |
| 84 | grn_rccxx . . $ grn_rc# grn_dat_dirtycxx . . $ grn_dat_dirty(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 85 | grn_boolcxx . . $ grn_bool# grn_dat_is_dirtycxx . . $ grn_dat_is_dirty(534ba1a3434c53c7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 86 | grn_rccxx . . $ grn_rc# grn_dat_cleancxx . . $ grn_dat_clean(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 87 | grn_rccxx . . $ grn_rc# grn_dat_clear_dirtycxx . . $ grn_dat_clear_dirty(9e753613864322e7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 88 | |
| 89 | grn_boolcxx . . $ grn_bool# grn_dat_is_corruptcxx . . $ grn_dat_is_corrupt(534ba1a3434c53c7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 90 | |
| 91 | size_tcxx . . $ size_t# grn_dat_get_disk_usagecxx . . $ grn_dat_get_disk_usage(d1690dc68fac5dd8).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_datcxx . . $ grn_dat# *dat); |
| 92 | |
| 93 | #ifdef __cpluspluscxx . . $ `<built-in>:471:9`! |
| 94 | } |
| 95 | #endif |