MillicastSDK 2.5.0
Loading...
Searching...
No Matches
event_handling.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef __cplusplus
4
5#include "exports.h"
6
7#include <functional>
8#include <memory>
9
10namespace millicast {
11template <typename... EventTypes>
12using EventHandler = std::function<void(const EventTypes&...)>;
13
23class MILLICAST_API EventConnection {
24 public:
25 virtual ~EventConnection() = default;
26
30 virtual void disconnect() = 0;
31};
32
33using EventConnectionPtr = std::unique_ptr<EventConnection>;
34} // namespace millicast
35
36#endif // __cplusplus
#define MILLICAST_API
Definition exports.h:51