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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// SPDX-License-Identifier: Apache-2.0 OR MIT
// Copyright (c) 2021-2025, Harbers Bik LLC
use ;
/*
impl DeviceClass {
pub fn new(tag: Signature) -> Self {
match tag.0 {
0x73636E72 => DeviceClass::Input,
0x6D6E7472 => DeviceClass::Display,
0x70727472 => DeviceClass::Output,
0x6C696E6B => DeviceClass::DeviceLink,
0x61627374 => DeviceClass::Abstract,
0x73706163 => DeviceClass::ColorSpace,
0x6E6D636C => DeviceClass::NamedColor,
0x73706563 => DeviceClass::Spectral,
_ => DeviceClass::None,
}
}
}
impl From<DeviceClass> for Signature {
fn from(device_class: DeviceClass) -> Self {
Signature(device_class as u32)
}
}
impl From<DeviceClass> for u32 {
fn from(device_class: DeviceClass) -> Self {
device_class as u32
}
}
*/