Commit 06a02488 authored by Feng Xiao's avatar Feng Xiao

Add missing LIBPROTOBUF_EXPORT

parent 7a7913e4
...@@ -73,7 +73,7 @@ typedef JsonPrintOptions JsonOptions; ...@@ -73,7 +73,7 @@ typedef JsonPrintOptions JsonOptions;
// Converts from protobuf message to JSON. This is a simple wrapper of // Converts from protobuf message to JSON. This is a simple wrapper of
// BinaryToJsonString(). It will use the DescriptorPool of the passed-in // BinaryToJsonString(). It will use the DescriptorPool of the passed-in
// message to resolve Any types. // message to resolve Any types.
util::Status MessageToJsonString(const Message& message, LIBPROTOBUF_EXPORT util::Status MessageToJsonString(const Message& message,
string* output, string* output,
const JsonOptions& options); const JsonOptions& options);
...@@ -85,7 +85,7 @@ inline util::Status MessageToJsonString(const Message& message, ...@@ -85,7 +85,7 @@ inline util::Status MessageToJsonString(const Message& message,
// Converts from JSON to protobuf message. This is a simple wrapper of // Converts from JSON to protobuf message. This is a simple wrapper of
// JsonStringToBinary(). It will use the DescriptorPool of the passed-in // JsonStringToBinary(). It will use the DescriptorPool of the passed-in
// message to resolve Any types. // message to resolve Any types.
util::Status JsonStringToMessage(const string& input, LIBPROTOBUF_EXPORT util::Status JsonStringToMessage(const string& input,
Message* message, Message* message,
const JsonParseOptions& options); const JsonParseOptions& options);
...@@ -100,7 +100,7 @@ inline util::Status JsonStringToMessage(const string& input, ...@@ -100,7 +100,7 @@ inline util::Status JsonStringToMessage(const string& input,
// 2. input is not valid protobuf wire format, or conflicts with the type // 2. input is not valid protobuf wire format, or conflicts with the type
// information returned by TypeResolver. // information returned by TypeResolver.
// Note that unknown fields will be discarded silently. // Note that unknown fields will be discarded silently.
util::Status BinaryToJsonStream( LIBPROTOBUF_EXPORT util::Status BinaryToJsonStream(
TypeResolver* resolver, TypeResolver* resolver,
const string& type_url, const string& type_url,
io::ZeroCopyInputStream* binary_input, io::ZeroCopyInputStream* binary_input,
...@@ -135,7 +135,7 @@ inline util::Status BinaryToJsonString(TypeResolver* resolver, ...@@ -135,7 +135,7 @@ inline util::Status BinaryToJsonString(TypeResolver* resolver,
// 1. TypeResolver fails to resolve a type. // 1. TypeResolver fails to resolve a type.
// 2. input is not valid JSON format, or conflicts with the type // 2. input is not valid JSON format, or conflicts with the type
// information returned by TypeResolver. // information returned by TypeResolver.
util::Status JsonToBinaryStream( LIBPROTOBUF_EXPORT util::Status JsonToBinaryStream(
TypeResolver* resolver, TypeResolver* resolver,
const string& type_url, const string& type_url,
io::ZeroCopyInputStream* json_input, io::ZeroCopyInputStream* json_input,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment