[Groonga-commit] groonga/groonga at 288930d [master] Add a missing file...

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Apr 1 18:45:09 JST 2016


Kouhei Sutou	2016-04-01 18:45:09 +0900 (Fri, 01 Apr 2016)

  New Revision: 288930d60bf038ec88a0c7743fe00c0cb4e03595
  https://github.com/groonga/groonga/commit/288930d60bf038ec88a0c7743fe00c0cb4e03595

  Message:
    Add a missing file...

  Added files:
    include/groonga/request_timer.h

  Added: include/groonga/request_timer.h (+50 -0) 100644
===================================================================
--- /dev/null
+++ include/groonga/request_timer.h    2016-04-01 18:45:09 +0900 (814f448)
@@ -0,0 +1,50 @@
+/*
+  Copyright(C) 2016 Brazil
+
+  This library is free software; you can redistribute it and/or
+  modify it under the terms of the GNU Lesser General Public
+  License as published by the Free Software Foundation; either
+  version 2.1 of the License, or (at your option) any later version.
+
+  This library is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+  Lesser General Public License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with this library; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+*/
+
+#pragma once
+
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
+typedef struct _grn_request_timer {
+  void *user_data;
+  void *(*register_func)(grn_ctx *ctx,
+                         const char *request_id,
+                         unsigned int request_id_size,
+                         double timeout,
+                         void *user_data);
+  void (*unregister_func)(grn_ctx *ctx,
+                          void *timer_id,
+                          void *user_data);
+  void (*fin_func)(grn_ctx *ctx,
+                   void *user_data);
+} grn_request_timer;
+
+GRN_API void grn_request_timer_set(grn_ctx *ctx, grn_request_timer *timer);
+
+GRN_API void *grn_request_timer_register(grn_ctx *ctx,
+                                         const char *request_id,
+                                         unsigned int request_id_size,
+                                         double timeout);
+GRN_API void grn_request_timer_unregister(grn_ctx *ctx, void *timer_id);
+
+
+#ifdef __cplusplus
+}
+#endif
-------------- next part --------------
HTML����������������������������...
Télécharger 



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