summaryrefslogtreecommitdiff
path: root/src/libcamera/include/message.h
blob: 97c9b80ec0e0ea4ec61ea3160a212c9763d904dd (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
36
37
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 * Copyright (C) 2019, Google Inc.
 *
 * message.h - Message queue support
 */
#ifndef __LIBCAMERA_MESSAGE_H__
#define __LIBCAMERA_MESSAGE_H__

namespace libcamera {

class Object;
class Thread;

class Message
{
public:
	enum Type {
		None = 0,
	};

	Message(Type type);
	virtual ~Message();

	Type type() const { return type_; }
	Object *receiver() const { return receiver_; }

private:
	friend class Thread;

	Type type_;
	Object *receiver_;
};

} /* namespace libcamera */

#endif /* __LIBCAMERA_MESSAGE_H__ */