|
|
|
@@ -13,12 +13,14 @@ namespace cppamqp |
|
|
|
struct channel |
|
|
|
{ |
|
|
|
private: |
|
|
|
using connection_t = ::cppamqp::connection; |
|
|
|
|
|
|
|
struct internal |
|
|
|
{ |
|
|
|
const connection& connection; |
|
|
|
const connection_t& connection; |
|
|
|
channel_number handle; |
|
|
|
|
|
|
|
internal(const ::cppamqp::connection& p_connection, channel_number p_handle); |
|
|
|
internal(const connection_t& p_connection, channel_number p_handle); |
|
|
|
~internal(); |
|
|
|
}; |
|
|
|
|
|
|
|
@@ -27,7 +29,7 @@ namespace cppamqp |
|
|
|
|
|
|
|
std::shared_ptr<internal> _internal; |
|
|
|
|
|
|
|
inline channel(const connection& p_connection, channel_number p_handle); |
|
|
|
inline channel(const connection_t& p_connection, channel_number p_handle); |
|
|
|
|
|
|
|
public: |
|
|
|
inline channel(); |
|
|
|
@@ -38,7 +40,7 @@ namespace cppamqp |
|
|
|
inline void operator = (channel&& other); |
|
|
|
|
|
|
|
inline channel_number handle () const; |
|
|
|
inline const connection& connection () const; |
|
|
|
inline const connection_t& connection () const; |
|
|
|
|
|
|
|
queue_declaration declare_queue (const std::string& name, const queue_flags& flags); |
|
|
|
void bind_queue (const std::string& queue, const std::string& exchange, const std::string& routing_key); |
|
|
|
|