MillicastSDK 2.0.0
Loading...
Searching...
No Matches
event_handling.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <functional>
6#include <memory>
7
8namespace millicast {
9template <typename... EventTypes>
10using EventHandler = std::function<void(const EventTypes&...)>;
11
22 public:
23 virtual ~EventConnection() = default;
24
28 virtual void disconnect() = 0;
29};
30
31using EventConnectionPtr = std::unique_ptr<EventConnection>;
32} // namespace millicast
Definition event_handling.h:21
virtual ~EventConnection()=default
virtual void disconnect()=0
#define MILLICAST_API
Definition exports.h:51
Definition capabilities.h:15
std::function< void(const EventTypes &...)> EventHandler
Definition event_handling.h:10
std::unique_ptr< EventConnection > EventConnectionPtr
Definition event_handling.h:31