Navigation Menu

Skip to content

Commit

Permalink
Add grn_ctx_get_all_tokenizers()
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 19, 2015
1 parent a5e8ba7 commit 821421c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/groonga/groonga.h
Expand Up @@ -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,
Expand Down
6 changes: 6 additions & 0 deletions lib/db.c
Expand Up @@ -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);
}

0 comments on commit 821421c

Please sign in to comment.