Kouhei Sutou
null+****@clear*****
Mon May 22 22:24:07 JST 2017
Kouhei Sutou 2017-05-22 22:24:07 +0900 (Mon, 22 May 2017) New Revision: 0e1ab75ba030c8780f674f9d0adc8128da23678b https://github.com/groonga/groonga/commit/0e1ab75ba030c8780f674f9d0adc8128da23678b Message: Add grn_plugin_proc_get_caller() Modified files: include/groonga/plugin.h lib/plugin.c Modified: include/groonga/plugin.h (+3 -0) =================================================================== --- include/groonga/plugin.h 2017-05-25 09:49:04 +0900 (f065c28) +++ include/groonga/plugin.h 2017-05-22 22:24:07 +0900 (d241444) @@ -186,6 +186,9 @@ GRN_API grn_obj *grn_plugin_proc_get_var_by_offset(grn_ctx *ctx, grn_user_data *user_data, unsigned int offset); +GRN_API grn_obj *grn_plugin_proc_get_caller(grn_ctx *ctx, + grn_user_data *user_data); + /* Deprecated since 5.0.9. Use grn_plugin_windows_base_dir() instead. */ GRN_API const char *grn_plugin_win32_base_dir(void); GRN_API const char *grn_plugin_windows_base_dir(void); Modified: lib/plugin.c (+10 -1) =================================================================== --- lib/plugin.c 2017-05-25 09:49:04 +0900 (22cd7f6) +++ lib/plugin.c 2017-05-22 22:24:07 +0900 (e60c22e) @@ -1,6 +1,6 @@ /* -*- c-basic-offset: 2 -*- */ /* - Copyright(C) 2012-2016 Brazil + Copyright(C) 2012-2017 Brazil This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -1290,6 +1290,15 @@ grn_plugin_proc_get_var_by_offset(grn_ctx *ctx, grn_user_data *user_data, return grn_proc_get_var_by_offset(ctx, user_data, offset); } +grn_obj * +grn_plugin_proc_get_caller(grn_ctx *ctx, grn_user_data *user_data) +{ + grn_obj *caller = NULL; + GRN_API_ENTER; + grn_proc_get_info(ctx, user_data, NULL, NULL, &caller); + GRN_API_RETURN(caller); +} + const char * grn_plugin_win32_base_dir(void) { -------------- next part -------------- HTML����������������������������...Descargar