Groonga
Loading...
Searching...
No Matches
msgpack.h
Go to the documentation of this file.
1/*
2 Copyright(C) 2018 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#include <groonga.h>
22#include <msgpack.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#define GRN_MSGPACK_OBJECT_EXT_TIME 0
29
31 msgpack_packer *packer,
32 const char *value,
33 unsigned int value_size,
34 grn_id value_domain);
35
37 msgpack_packer *packer,
38 grn_obj *value);
39
41 msgpack_object_array *array,
42 grn_obj *vector);
43# if MSGPACK_VERSION_MAJOR >= 1
44int64_t grn_msgpack_unpack_ext_time(grn_ctx *ctx,
45 msgpack_object_ext *ext);
46# endif /* MSGPACK_VERSION_MAJOR >= 1 */
47
48#ifdef __cplusplus
49}
50#endif
grn_rc
Definition groonga.h:61
uint32_t grn_id
Definition groonga.h:44
grn_rc grn_msgpack_pack_raw(grn_ctx *ctx, msgpack_packer *packer, const char *value, unsigned int value_size, grn_id value_domain)
grn_rc grn_msgpack_unpack_array(grn_ctx *ctx, msgpack_object_array *array, grn_obj *vector)
grn_rc grn_msgpack_pack(grn_ctx *ctx, msgpack_packer *packer, grn_obj *value)
Definition groonga.h:351
Definition groonga.h:919