summaryrefslogtreecommitdiff
path: root/include/libcamera/control_ids.h
blob: d0e700da9844e516a2dfb714eaff75a0f4c12067 (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.
 *
 * control_ids.h : Control ID list
 */

#ifndef __LIBCAMERA_CONTROL_IDS_H__
#define __LIBCAMERA_CONTROL_IDS_H__

#include <functional>

namespace libcamera {

enum ControlId {
};

} /* namespace libcamera */

namespace std {

template<>
struct hash<libcamera::ControlId> {
	using argument_type = libcamera::ControlId;
	using result_type = std::size_t;

	result_type operator()(const argument_type &key) const noexcept
	{
		return std::hash<std::underlying_type<argument_type>::type>()(key);
	}
};

} /* namespace std */

#endif // __LIBCAMERA_CONTROL_IDS_H__