mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-01 19:18:04 +00:00
Use CPPKAFKA_API for friends and free functions
This commit is contained in:
@@ -152,7 +152,7 @@ public:
|
||||
/**
|
||||
* Output operator
|
||||
*/
|
||||
friend std::ostream& operator<<(std::ostream& output, const Buffer& rhs);
|
||||
CPPKAFKA_API friend std::ostream& operator<<(std::ostream& output, const Buffer& rhs);
|
||||
private:
|
||||
const DataType* data_;
|
||||
size_t size_;
|
||||
@@ -161,12 +161,12 @@ private:
|
||||
/**
|
||||
* Compares Buffer objects for equality
|
||||
*/
|
||||
bool operator==(const Buffer& lhs, const Buffer& rhs);
|
||||
CPPKAFKA_API bool operator==(const Buffer& lhs, const Buffer& rhs);
|
||||
|
||||
/**
|
||||
* Compares Buffer objects for inequality
|
||||
*/
|
||||
bool operator!=(const Buffer& lhs, const Buffer& rhs);
|
||||
CPPKAFKA_API bool operator!=(const Buffer& lhs, const Buffer& rhs);
|
||||
|
||||
} // cppkafka
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ public:
|
||||
/**
|
||||
* Writes this error's string representation into a stream
|
||||
*/
|
||||
friend std::ostream& operator<<(std::ostream& output, const Error& rhs);
|
||||
CPPKAFKA_API friend std::ostream& operator<<(std::ostream& output, const Error& rhs);
|
||||
private:
|
||||
rd_kafka_resp_err_t error_;
|
||||
};
|
||||
|
||||
@@ -130,7 +130,7 @@ public:
|
||||
/**
|
||||
* Print to a stream
|
||||
*/
|
||||
friend std::ostream& operator<<(std::ostream& output, const TopicPartition& rhs);
|
||||
CPPKAFKA_API friend std::ostream& operator<<(std::ostream& output, const TopicPartition& rhs);
|
||||
private:
|
||||
std::string topic_;
|
||||
int partition_;
|
||||
|
||||
Reference in New Issue
Block a user