[Groonga-commit] groonga/groonga at a131790 [master] Export grn_output_*

Back to archive index
Kouhei Sutou null+****@clear*****
Fri Nov 9 12:04:06 JST 2018


Kouhei Sutou	2018-11-09 12:04:06 +0900 (Fri, 09 Nov 2018)

  Revision: a13179049c134959c829594151b3b54450f8d32b
  https://github.com/groonga/groonga/commit/a13179049c134959c829594151b3b54450f8d32b

  Message:
    Export grn_output_*

  Modified files:
    include/groonga/output.h
    lib/grn_output.h

  Modified: include/groonga/output.h (+54 -0)
===================================================================
--- include/groonga/output.h    2018-11-09 11:38:00 +0900 (8f95be532)
+++ include/groonga/output.h    2018-11-09 12:04:06 +0900 (cb0d6b8dc)
@@ -1,5 +1,6 @@
 /*
   Copyright(C) 2009-2018 Brazil
+  Copyright(C) 2018 Kouhei Sutou <kou****@clear*****>
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -75,6 +76,59 @@ GRN_API void grn_output_envelope(grn_ctx *ctx, grn_rc rc,
                                  grn_obj *head, grn_obj *body, grn_obj *foot,
                                  const char *file, int line);
 
+GRN_API void grn_output_array_open(grn_ctx *ctx,
+                                   grn_obj *outbuf,
+                                   grn_content_type output_type,
+                                   const char *name,
+                                   int n_elements);
+GRN_API void grn_output_array_close(grn_ctx *ctx,
+                                    grn_obj *outbuf,
+                                    grn_content_type output_type);
+GRN_API void grn_output_map_open(grn_ctx *ctx,
+                                 grn_obj *outbuf,
+                                 grn_content_type output_type,
+                                 const char *name,
+                                 int n_elements);
+GRN_API void grn_output_map_close(grn_ctx *ctx,
+                                  grn_obj *outbuf,
+                                  grn_content_type output_type);
+GRN_API void grn_output_null(grn_ctx *ctx,
+                             grn_obj *outbuf,
+                             grn_content_type output_type);
+GRN_API void grn_output_int32(grn_ctx *ctx,
+                              grn_obj *outbuf,
+                              grn_content_type output_type,
+                              int32_t value);
+GRN_API void grn_output_uint32(grn_ctx *ctx,
+                               grn_obj *outbuf,
+                               grn_content_type output_type,
+                               uint32_t value);
+GRN_API void grn_output_int64(grn_ctx *ctx,
+                              grn_obj *outbuf,
+                              grn_content_type output_type,
+                              int64_t value);
+GRN_API void grn_output_uint64(grn_ctx *ctx,
+                               grn_obj *outbuf,
+                               grn_content_type output_type,
+                               uint64_t value);
+GRN_API void grn_output_float(grn_ctx *ctx,
+                              grn_obj *outbuf,
+                              grn_content_type output_type,
+                              double value);
+GRN_API void grn_output_cstr(grn_ctx *ctx,
+                             grn_obj *outbuf,
+                             grn_content_type output_type,
+                             const char *value);
+GRN_API void grn_output_str(grn_ctx *ctx,
+                            grn_obj *outbuf,
+                            grn_content_type output_type,
+                            const char *value,
+                            size_t value_len);
+GRN_API void grn_output_bool(grn_ctx *ctx,
+                             grn_obj *outbuf,
+                             grn_content_type output_type,
+                             grn_bool value);
+
 GRN_API void grn_ctx_output_flush(grn_ctx *ctx, int flags);
 GRN_API void grn_ctx_output_array_open(grn_ctx *ctx,
                                        const char *name, int nelements);

  Modified: lib/grn_output.h (+0 -31)
===================================================================
--- lib/grn_output.h    2018-11-09 11:38:00 +0900 (4aef5979f)
+++ lib/grn_output.h    2018-11-09 12:04:06 +0900 (94d8c1af4)
@@ -27,37 +27,6 @@
 extern "C" {
 #endif
 
-GRN_API void grn_output_array_open(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
-                           const char *name, int nelements);
-GRN_API void grn_output_array_close(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type);
-GRN_API void grn_output_map_open(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
-                                 const char *name, int nelements);
-GRN_API void grn_output_map_close(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type);
-GRN_API void grn_output_null(grn_ctx *ctx, grn_obj *outbuf,
-                             grn_content_type output_type);
-void grn_output_int32(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
-                      int32_t value);
-void grn_output_uint32(grn_ctx *ctx,
-                       grn_obj *outbuf,
-                       grn_content_type output_type,
-                       uint32_t value);
-GRN_API void grn_output_int64(grn_ctx *ctx, grn_obj *outbuf,
-                              grn_content_type output_type,
-                              int64_t value);
-GRN_API void grn_output_uint64(grn_ctx *ctx, grn_obj *outbuf,
-                               grn_content_type output_type,
-                               uint64_t value);
-void grn_output_float(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
-                      double value);
-GRN_API void grn_output_cstr(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
-                             const char *value);
-GRN_API void grn_output_str(grn_ctx *ctx, grn_obj *outbuf,
-                            grn_content_type output_type,
-                            const char *value, size_t value_len);
-GRN_API void grn_output_bool(grn_ctx *ctx, grn_obj *outbuf,
-                             grn_content_type output_type,
-                             grn_bool value);
-
 GRN_API void grn_output_result_set_open(grn_ctx *ctx,
                                         grn_obj *outbuf,
                                         grn_content_type output_type,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181109/4d26d13c/attachment-0001.html>


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