[Groonga-commit] groonga/groonga at 585c74d [master] Add grn_command_input_get_arguments()

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jun 30 14:57:49 JST 2015


Kouhei Sutou	2015-06-30 14:57:49 +0900 (Tue, 30 Jun 2015)

  New Revision: 585c74d64023f2fea456c4652843ce8913b2f5a8
  https://github.com/groonga/groonga/commit/585c74d64023f2fea456c4652843ce8913b2f5a8

  Message:
    Add grn_command_input_get_arguments()

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

  Modified: include/groonga/command.h (+2 -0)
===================================================================
--- include/groonga/command.h    2015-06-30 14:33:01 +0900 (101956a)
+++ include/groonga/command.h    2015-06-30 14:57:49 +0900 (ac5270e)
@@ -43,6 +43,8 @@ GRN_PLUGIN_EXPORT grn_obj *grn_command_input_get(grn_ctx *ctx,
 GRN_PLUGIN_EXPORT grn_obj *grn_command_input_at(grn_ctx *ctx,
                                                 grn_command_input *input,
                                                 unsigned int offset);
+GRN_PLUGIN_EXPORT grn_obj *grn_command_input_get_arguments(grn_ctx *ctx,
+                                                           grn_command_input *input);
 
 typedef void grn_command_run_func(grn_ctx *ctx,
                                   grn_obj *command,

  Modified: lib/command.c (+8 -0)
===================================================================
--- lib/command.c    2015-06-30 14:33:01 +0900 (e4be0d1)
+++ lib/command.c    2015-06-30 14:57:49 +0900 (282d15b)
@@ -129,6 +129,14 @@ grn_command_input_at(grn_ctx *ctx,
   GRN_API_RETURN(argument);
 }
 
+grn_obj *
+grn_command_input_get_arguments(grn_ctx *ctx,
+                                grn_command_input *input)
+{
+  GRN_API_ENTER;
+  GRN_API_RETURN((grn_obj *)(input->arguments));
+}
+
 grn_rc
 grn_command_register(grn_ctx *ctx,
                      const char *command_name,
-------------- next part --------------
HTML����������������������������...
Download 



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