blob: eadd41f9a41fa37ab0e073be83cbb8589a5c8bf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2019, Google Inc.
*
* object.h - Base object
*/
#ifndef __LIBCAMERA_OBJECT_H__
#define __LIBCAMERA_OBJECT_H__
#include <list>
namespace libcamera {
class SignalBase;
template<typename... Args>
class Signal;
class Object
{
public:
virtual ~Object();
private:
template<typename... Args>
friend class Signal;
void connect(SignalBase *signal);
void disconnect(SignalBase *signal);
std::list<SignalBase *> signals_;
};
}; /* namespace libcamera */
#endif /* __LIBCAMERA_OBJECT_H__ */
|