MillicastSDK
2.5.0
Loading...
Searching...
No Matches
api
millicast-sdk
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
10
namespace
millicast {
11
template
<
typename
... EventTypes>
12
using
EventHandler = std::function<void(
const
EventTypes&...)>;
13
23
class
MILLICAST_API
EventConnection {
24
public
:
25
virtual
~EventConnection() =
default
;
26
30
virtual
void
disconnect() = 0;
31
};
32
33
using
EventConnectionPtr = std::unique_ptr<EventConnection>;
34
}
// namespace millicast
35
36
#endif
// __cplusplus
exports.h
MILLICAST_API
#define MILLICAST_API
Definition
exports.h:51
Generated by
1.12.0