[Groonga-commit] groonga/groonga at efdae25 [master] Export grn_selector_func and grn_proc_set_selector

Back to archive index

naoa null+****@clear*****
Wed Aug 13 02:25:16 JST 2014


naoa	2014-08-13 02:25:16 +0900 (Wed, 13 Aug 2014)

  New Revision: efdae25dee0fa21312b412c83029c77dcd731aeb
  https://github.com/groonga/groonga/commit/efdae25dee0fa21312b412c83029c77dcd731aeb

  Merged 4cbda81: Merge pull request #190 from naoa/export-grn_proc_set_selector

  Message:
    Export grn_selector_func and grn_proc_set_selector

  Modified files:
    include/groonga.h
    lib/db.h

  Modified: include/groonga.h (+7 -0)
===================================================================
--- include/groonga.h    2014-08-12 22:29:45 +0900 (4460f1b)
+++ include/groonga.h    2014-08-13 02:25:16 +0900 (7ac7f87)
@@ -881,6 +881,13 @@ struct _grn_search_optarg {
 GRN_API grn_rc grn_obj_search(grn_ctx *ctx, grn_obj *obj, grn_obj *query,
                               grn_obj *res, grn_operator op, grn_search_optarg *optarg);
 
+typedef grn_rc grn_selector_func(grn_ctx *ctx, grn_obj *table, grn_obj *index,
+                                 int nargs, grn_obj **args,
+                                 grn_obj *res, grn_operator op);
+
+GRN_API grn_rc grn_proc_set_selector(grn_ctx *ctx, grn_obj *proc,
+                                     grn_selector_func selector);
+
 /*-------------------------------------------------------------
  * grn_vector
 */

  Modified: lib/db.h (+0 -7)
===================================================================
--- lib/db.h    2014-08-12 22:29:45 +0900 (3a6863e)
+++ lib/db.h    2014-08-13 02:25:16 +0900 (b5ab37d)
@@ -158,10 +158,6 @@ struct _grn_type {
   (GRN_OBJ_VECTOR_COLUMNP(obj) &&\
    (DB_OBJ(obj)->header.flags & GRN_OBJ_WITH_WEIGHT))
 
-typedef grn_rc grn_selector_func(grn_ctx *ctx, grn_obj *table, grn_obj *index,
-                                 int nargs, grn_obj **args,
-                                 grn_obj *res, grn_operator op);
-
 typedef struct _grn_proc_ctx grn_proc_ctx;
 
 struct _grn_proc_ctx {
@@ -210,9 +206,6 @@ GRN_API grn_obj *grn_proc_get_or_add_var(grn_ctx *ctx, grn_user_data *user_data,
 GRN_API grn_obj *grn_proc_alloc(grn_ctx *ctx, grn_user_data *user_data,
                                 grn_id domain, grn_obj_flags flags);
 
-grn_rc grn_proc_set_selector(grn_ctx *ctx, grn_obj *proc,
-                             grn_selector_func selector);
-
 GRN_API grn_rc grn_proc_call(grn_ctx *ctx, grn_obj *proc,
                              int nargs, grn_obj *caller);
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index