| 1 | /* |
| 2 | Copyright (C) 2010-2018 Brazil |
| 3 | Copyright (C) 2020-2022 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 | |
| 24 | #ifdef __cplusplus |
| 25 | extern "C" { |
| 26 | #endif |
| 27 | |
| 28 | extern uint32_tcxx . . $ uint32_t# grn_output_auto_flush_intervalcxx . . $ grn_output_auto_flush_interval.; |
| 29 | void |
| 30 | grn_output_init_from_envcxx . . $ grn_output_init_from_env(49f6e7a06ebc5aa8).(void); |
| 31 | |
| 32 | GRN_APIcxx . . $ `lib/grn.h:84:13`! void |
| 33 | grn_output_result_set_open_metadatacxx . . $ grn_output_result_set_open_metadata(bc64c0e8fada233f).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 34 | grn_objcxx . . $ grn_obj# *outbuf, |
| 35 | grn_content_typecxx . . $ grn_content_type# output_type, |
| 36 | grn_objcxx . . $ grn_obj# *result_set, |
| 37 | grn_obj_formatcxx . . $ grn_obj_format# *format, |
| 38 | uint32_tcxx . . $ uint32_t# n_additional_elements); |
| 39 | GRN_APIcxx . . $ `lib/grn.h:84:13`! void |
| 40 | grn_output_result_set_opencxx . . $ grn_output_result_set_open(bc64c0e8fada233f).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 41 | grn_objcxx . . $ grn_obj# *outbuf, |
| 42 | grn_content_typecxx . . $ grn_content_type# output_type, |
| 43 | grn_objcxx . . $ grn_obj# *result_set, |
| 44 | grn_obj_formatcxx . . $ grn_obj_format# *format, |
| 45 | uint32_tcxx . . $ uint32_t# n_additional_elements); |
| 46 | GRN_APIcxx . . $ `lib/grn.h:84:13`! void |
| 47 | grn_output_result_set_closecxx . . $ grn_output_result_set_close(476dda3f1803c14f).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 48 | grn_objcxx . . $ grn_obj# *outbuf, |
| 49 | grn_content_typecxx . . $ grn_content_type# output_type, |
| 50 | grn_objcxx . . $ grn_obj# *result_set, |
| 51 | grn_obj_formatcxx . . $ grn_obj_format# *format); |
| 52 | GRN_APIcxx . . $ `lib/grn.h:84:13`! void |
| 53 | grn_output_result_setcxx . . $ grn_output_result_set(476dda3f1803c14f).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 54 | grn_objcxx . . $ grn_obj# *outbuf, |
| 55 | grn_content_typecxx . . $ grn_content_type# output_type, |
| 56 | grn_objcxx . . $ grn_obj# *result_set, |
| 57 | grn_obj_formatcxx . . $ grn_obj_format# *format); |
| 58 | GRN_APIcxx . . $ `lib/grn.h:84:13`! void |
| 59 | grn_output_table_columnscxx . . $ grn_output_table_columns(476dda3f1803c14f).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 60 | grn_objcxx . . $ grn_obj# *outbuf, |
| 61 | grn_content_typecxx . . $ grn_content_type# output_type, |
| 62 | grn_objcxx . . $ grn_obj# *table, |
| 63 | grn_obj_formatcxx . . $ grn_obj_format# *format); |
| 64 | GRN_APIcxx . . $ `lib/grn.h:84:13`! void |
| 65 | grn_output_table_records_opencxx . . $ grn_output_table_records_open(fcf96de71529f7c8).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 66 | grn_objcxx . . $ grn_obj# *outbuf, |
| 67 | grn_content_typecxx . . $ grn_content_type# output_type, |
| 68 | int n_records); |
| 69 | GRN_APIcxx . . $ `lib/grn.h:84:13`! void |
| 70 | grn_output_table_records_contentcxx . . $ grn_output_table_records_content(476dda3f1803c14f).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 71 | grn_objcxx . . $ grn_obj# *outbuf, |
| 72 | grn_content_typecxx . . $ grn_content_type# output_type, |
| 73 | grn_objcxx . . $ grn_obj# *table, |
| 74 | grn_obj_formatcxx . . $ grn_obj_format# *format); |
| 75 | GRN_APIcxx . . $ `lib/grn.h:84:13`! void |
| 76 | grn_output_table_records_closecxx . . $ grn_output_table_records_close(e6307d566213600d).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 77 | grn_objcxx . . $ grn_obj# *outbuf, |
| 78 | grn_content_typecxx . . $ grn_content_type# output_type); |
| 79 | GRN_APIcxx . . $ `lib/grn.h:84:13`! void |
| 80 | grn_output_table_recordscxx . . $ grn_output_table_records(476dda3f1803c14f).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 81 | grn_objcxx . . $ grn_obj# *outbuf, |
| 82 | grn_content_typecxx . . $ grn_content_type# output_type, |
| 83 | grn_objcxx . . $ grn_obj# *table, |
| 84 | grn_obj_formatcxx . . $ grn_obj_format# *format); |
| 85 | |
| 86 | grn_rccxx . . $ grn_rc# |
| 87 | grn_obj_format_set_columnscxx . . $ grn_obj_format_set_columns(f7ce06d10cde026f).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 88 | grn_obj_formatcxx . . $ grn_obj_format# *format, |
| 89 | grn_objcxx . . $ grn_obj# *table, |
| 90 | const char *columns, |
| 91 | unsigned int columns_len); |
| 92 | |
| 93 | #define GRN_OUTPUT_ARRAY_OPENcxx . . $ `lib/grn_output.h:93:9`!(name, nelements) \ |
| 94 | (grn_ctx_output_array_open(ctx, name, nelements)) |
| 95 | #define GRN_OUTPUT_ARRAY_CLOSEcxx . . $ `lib/grn_output.h:95:9`!() (grn_ctx_output_array_close(ctx)) |
| 96 | #define GRN_OUTPUT_MAP_OPENcxx . . $ `lib/grn_output.h:96:9`!(name, nelements) \ |
| 97 | (grn_ctx_output_map_open(ctx, name, nelements)) |
| 98 | #define GRN_OUTPUT_MAP_CLOSEcxx . . $ `lib/grn_output.h:98:9`!() (grn_ctx_output_map_close(ctx)) |
| 99 | #define GRN_OUTPUT_NULLcxx . . $ `lib/grn_output.h:99:9`!() (grn_ctx_output_null(ctx)) |
| 100 | #define GRN_OUTPUT_INT32cxx . . $ `lib/grn_output.h:100:9`!(value) (grn_ctx_output_int32(ctx, value)) |
| 101 | #define GRN_OUTPUT_INT64cxx . . $ `lib/grn_output.h:101:9`!(value) (grn_ctx_output_int64(ctx, value)) |
| 102 | #define GRN_OUTPUT_UINT32cxx . . $ `lib/grn_output.h:102:9`!(value) (grn_ctx_output_uint32(ctx, value)) |
| 103 | #define GRN_OUTPUT_UINT64cxx . . $ `lib/grn_output.h:103:9`!(value) (grn_ctx_output_uint64(ctx, value)) |
| 104 | #define GRN_OUTPUT_FLOATcxx . . $ `lib/grn_output.h:104:9`!(value) (grn_ctx_output_float(ctx, value)) |
| 105 | #define GRN_OUTPUT_CSTRcxx . . $ `lib/grn_output.h:105:9`!(value) (grn_ctx_output_cstr(ctx, value)) |
| 106 | #define GRN_OUTPUT_STRcxx . . $ `lib/grn_output.h:106:9`!(value, value_len) \ |
| 107 | (grn_ctx_output_str(ctx, value, value_len)) |
| 108 | #define GRN_OUTPUT_BOOLcxx . . $ `lib/grn_output.h:108:9`!(value) (grn_ctx_output_bool(ctx, value)) |
| 109 | #define GRN_OUTPUT_OBJcxx . . $ `lib/grn_output.h:109:9`!(obj, format) (grn_ctx_output_obj(ctx, obj, format)) |
| 110 | #define GRN_OUTPUT_RESULT_SET_OPEN_METADATAcxx . . $ `lib/grn_output.h:110:9`!(result_set, \ |
| 111 | format, \ |
| 112 | n_additional_elements) \ |
| 113 | (grn_ctx_output_result_set_open_metadata(ctx, \ |
| 114 | result_set, \ |
| 115 | format, \ |
| 116 | n_additional_elements)) |
| 117 | #define GRN_OUTPUT_RESULT_SET_OPENcxx . . $ `lib/grn_output.h:117:9`!(result_set, format, n_additional_elements) \ |
| 118 | (grn_ctx_output_result_set_open(ctx, \ |
| 119 | result_set, \ |
| 120 | format, \ |
| 121 | n_additional_elements)) |
| 122 | #define GRN_OUTPUT_RESULT_SET_CLOSEcxx . . $ `lib/grn_output.h:122:9`!(result_set, format) \ |
| 123 | (grn_ctx_output_result_set_close(ctx, result_set, format)) |
| 124 | #define GRN_OUTPUT_RESULT_SETcxx . . $ `lib/grn_output.h:124:9`!(result_set, format, n_additional_elements) \ |
| 125 | (grn_ctx_output_result_set(ctx, result_set, format, n_additional_elements)) |
| 126 | #define GRN_OUTPUT_TABLE_COLUMNScxx . . $ `lib/grn_output.h:126:9`!(table, format) \ |
| 127 | (grn_ctx_output_table_columns(ctx, table, format)) |
| 128 | #define GRN_OUTPUT_TABLE_RECORDScxx . . $ `lib/grn_output.h:128:9`!(table, format) \ |
| 129 | (grn_ctx_output_table_records(ctx, table, format)) |
| 130 | |
| 131 | #ifdef __cplusplus |
| 132 | } |
| 133 | #endif |