[Groonga-commit] groonga/groonga at 821421c [master] Add grn_ctx_get_all_tokenizers()

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Oct 19 15:21:24 JST 2015


Kouhei Sutou	2015-10-19 15:21:24 +0900 (Mon, 19 Oct 2015)

  New Revision: 821421c9482d8cb72a8e77bb29192046ed3722f4
  https://github.com/groonga/groonga/commit/821421c9482d8cb72a8e77bb29192046ed3722f4

  Message:
    Add grn_ctx_get_all_tokenizers()

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

  Modified: include/groonga/groonga.h (+2 -0)
===================================================================
--- include/groonga/groonga.h    2015-10-19 15:21:08 +0900 (236c9df)
+++ include/groonga/groonga.h    2015-10-19 15:21:24 +0900 (62133f3)
@@ -442,6 +442,8 @@ GRN_API grn_obj *grn_ctx_db(grn_ctx *ctx);
 GRN_API grn_obj *grn_ctx_get(grn_ctx *ctx, const char *name, int name_size);
 GRN_API grn_rc grn_ctx_get_all_tables(grn_ctx *ctx, grn_obj *tables_buffer);
 GRN_API grn_rc grn_ctx_get_all_types(grn_ctx *ctx, grn_obj *types_buffer);
+GRN_API grn_rc grn_ctx_get_all_tokenizers(grn_ctx *ctx,
+                                          grn_obj *tokenizers_buffer);
 
 typedef enum {
   GRN_DB_VOID = 0,

  Modified: lib/db.c (+6 -0)
===================================================================
--- lib/db.c    2015-10-19 15:21:08 +0900 (7a42e0d)
+++ lib/db.c    2015-10-19 15:21:24 +0900 (c07c214)
@@ -13439,3 +13439,9 @@ grn_ctx_get_all_types(grn_ctx *ctx, grn_obj *types_buffer)
 {
   return grn_ctx_get_all_objects(ctx, types_buffer, grn_obj_is_type);
 }
+
+grn_rc
+grn_ctx_get_all_tokenizers(grn_ctx *ctx, grn_obj *types_buffer)
+{
+  return grn_ctx_get_all_objects(ctx, types_buffer, grn_obj_is_tokenizer_proc);
+}
-------------- next part --------------
HTML����������������������������...
Download 



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