[Groonga-commit] groonga/groonga [master] Export grn_query_logger_reopen()

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Dec 19 18:20:29 JST 2012


Kouhei Sutou	2012-12-19 18:20:29 +0900 (Wed, 19 Dec 2012)

  New Revision: 06c2937b3ac3a5abb87fe25a3000954707ee123d
  https://github.com/groonga/groonga/commit/06c2937b3ac3a5abb87fe25a3000954707ee123d

  Log:
    Export grn_query_logger_reopen()

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

  Modified: include/groonga.h (+1 -0)
===================================================================
--- include/groonga.h    2012-12-18 15:19:20 +0900 (77280a8)
+++ include/groonga.h    2012-12-19 18:20:29 +0900 (e8b657a)
@@ -2096,6 +2096,7 @@ GRN_API grn_rc grn_query_logger_info_set(grn_ctx *ctx, const grn_query_logger_in
 GRN_API void grn_query_logger_put(grn_ctx *ctx, unsigned int flag,
                                   const char *mark,
                                   const char *format, ...) GRN_ATTRIBUTE_PRINTF(4);
+GRN_API void grn_query_logger_reopen(grn_ctx *ctx);
 
 GRN_API grn_bool grn_query_logger_pass(grn_ctx *ctx, unsigned int flag);
 

  Modified: lib/ctx.c (+6 -0)
===================================================================
--- lib/ctx.c    2012-12-18 15:19:20 +0900 (f80d23f)
+++ lib/ctx.c    2012-12-19 18:20:29 +0900 (418a083)
@@ -824,6 +824,12 @@ grn_log_reopen(grn_ctx *ctx)
         "grn_log_reopen() is not implemented with a custom grn_logger.");
   }
 
+  grn_query_logger_reopen(ctx);
+}
+
+void
+grn_query_logger_reopen(grn_ctx *ctx)
+{
   if (grn_query_logger->reopen) {
     grn_query_logger->reopen(ctx, grn_query_logger->user_data);
   }
-------------- next part --------------
HTML����������������������������...
Download 



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