Groonga
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1/*
2 Copyright(C) 2015-2016 Brazil
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
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-1301 USA
17*/
18
19#pragma once
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#define GRN_CONFIG_MAX_KEY_SIZE GRN_TABLE_MAX_KEY_SIZE
26#define GRN_CONFIG_MAX_VALUE_SIZE \
27 (GRN_CONFIG_VALUE_SPACE_SIZE - sizeof(uint32_t) - 1) /* 1 is for '\0' */
28#define GRN_CONFIG_VALUE_SPACE_SIZE (4 * 1024)
29
31 const char *key, int32_t key_size,
32 const char *value, int32_t value_size);
34 const char *key, int32_t key_size,
35 const char **value, uint32_t *value_size);
36
37
39 const char *key, int32_t key_size);
40
44 grn_obj *cursor,
45 const char **key);
47 grn_obj *cursor,
48 const char **value);
49
50/* Deprecated since 5.1.2. Use GRN_CONFIG_* instead. */
51
52#define GRN_CONF_MAX_KEY_SIZE GRN_CONFIG_MAX_KEY_SIZE
53#define GRN_CONF_MAX_VALUE_SIZE GRN_CONFIG_MAX_VALUE_SIZE
54#define GRN_CONF_VALUE_SPACE_SIZE GRN_CONFIG_VALUE_SPACE_SIZE
55
57 const char *key, int32_t key_size,
58 const char *value, int32_t value_size);
60 const char *key, int32_t key_size,
61 const char **value, uint32_t *value_size);
62
63#ifdef __cplusplus
64}
65#endif
GRN_API grn_rc grn_config_set(grn_ctx *ctx, const char *key, int32_t key_size, const char *value, int32_t value_size)
GRN_API grn_rc grn_conf_set(grn_ctx *ctx, const char *key, int32_t key_size, const char *value, int32_t value_size)
GRN_API uint32_t grn_config_cursor_get_value(grn_ctx *ctx, grn_obj *cursor, const char **value)
GRN_API grn_rc grn_config_get(grn_ctx *ctx, const char *key, int32_t key_size, const char **value, uint32_t *value_size)
GRN_API uint32_t grn_config_cursor_get_key(grn_ctx *ctx, grn_obj *cursor, const char **key)
GRN_API bool grn_config_cursor_next(grn_ctx *ctx, grn_obj *cursor)
GRN_API grn_rc grn_conf_get(grn_ctx *ctx, const char *key, int32_t key_size, const char **value, uint32_t *value_size)
GRN_API grn_obj * grn_config_cursor_open(grn_ctx *ctx)
GRN_API grn_rc grn_config_delete(grn_ctx *ctx, const char *key, int32_t key_size)
grn_rc
Definition groonga.h:61
#define GRN_API
Definition groonga.h:39
Definition groonga.h:351
Definition groonga.h:919