mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-31 16:35:26 +00:00
be7ce4110e
This reverts commit e96515433d71684a5a9a876c7af93530e11e160b.
30 lines
586 B
C++
30 lines
586 B
C++
#include <pqxx/internal/callgate.hxx>
|
|
|
|
#include "pqxx/connection.hxx"
|
|
|
|
|
|
namespace pqxx
|
|
{
|
|
class notification_receiver;
|
|
}
|
|
|
|
|
|
namespace pqxx::internal::gate
|
|
{
|
|
class PQXX_PRIVATE connection_notification_receiver : callgate<connection>
|
|
{
|
|
friend class pqxx::notification_receiver;
|
|
|
|
connection_notification_receiver(reference x) : super(x) {}
|
|
|
|
void add_receiver(notification_receiver *receiver)
|
|
{
|
|
home().add_receiver(receiver);
|
|
}
|
|
void remove_receiver(notification_receiver *receiver) noexcept
|
|
{
|
|
home().remove_receiver(receiver);
|
|
}
|
|
};
|
|
} // namespace pqxx::internal::gate
|