Kouhei Sutou
null+****@clear*****
Tue Jun 12 16:50:13 JST 2018
Kouhei Sutou 2018-06-12 16:50:13 +0900 (Tue, 12 Jun 2018) New Revision: b95dc3f2a41aee64e3ba29b982730be5dec6d38e https://github.com/groonga/groonga/commit/b95dc3f2a41aee64e3ba29b982730be5dec6d38e Message: Add a new API: grn_plugin_proc_get_value_mode() Modified files: include/groonga/plugin.h lib/plugin.c Modified: include/groonga/plugin.h (+5 -0) =================================================================== --- include/groonga/plugin.h 2018-06-12 16:48:43 +0900 (87382f95c) +++ include/groonga/plugin.h 2018-06-12 16:50:13 +0900 (462e1f9bd) @@ -216,6 +216,11 @@ GRN_API int64_t grn_plugin_proc_get_value_int64(grn_ctx *ctx, grn_obj *value, int64_t default_value_raw, const char *context); +GRN_API grn_operator +grn_plugin_proc_get_value_mode(grn_ctx *ctx, + grn_obj *value, + grn_operator default_oeprator, + const char *context); #ifdef __cplusplus } Modified: lib/plugin.c (+11 -1) =================================================================== --- lib/plugin.c 2018-06-12 16:48:43 +0900 (216c71c4d) +++ lib/plugin.c 2018-06-12 16:50:13 +0900 (2def4d80e) @@ -1,6 +1,6 @@ /* -*- c-basic-offset: 2 -*- */ /* - Copyright(C) 2012-2017 Brazil + Copyright(C) 2012-2018 Brazil This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -15,6 +15,7 @@ License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ + #include "grn.h" #include "grn_ctx_impl_mrb.h" #include "grn_proc.h" @@ -1404,3 +1405,12 @@ grn_plugin_proc_get_value_int64(grn_ctx *ctx, { return grn_proc_get_value_int64(ctx, value, default_value_raw, context); } + +grn_operator +grn_plugin_proc_get_value_mode(grn_ctx *ctx, + grn_obj *value, + grn_operator default_mode, + const char *context) +{ + return grn_proc_get_value_mode(ctx, value, default_mode, context); +} -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180612/c7969000/attachment-0001.htm