Line |
Branch |
Exec |
Source |
1 |
|
|
|
2 |
|
|
/* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ |
3 |
|
|
|
4 |
|
|
#include "bolt-enum-types.h" |
5 |
|
|
#include "bolt/bolt-enums.h" |
6 |
|
|
#include "bolt/bolt-error.h" |
7 |
|
|
|
8 |
|
|
#define C_ENUM(v) ((gint) v) |
9 |
|
|
#define C_FLAGS(v) ((guint) v) |
10 |
|
|
|
11 |
|
|
/* enumerations from "bolt-enums.h" */ |
12 |
|
|
|
13 |
|
|
GType |
14 |
|
✗ |
bolt_status_get_type (void) |
15 |
|
|
{ |
16 |
|
|
static gsize gtype_id = 0; |
17 |
|
|
static const GEnumValue values[] = { |
18 |
|
|
{ C_ENUM(BOLT_STATUS_UNKNOWN), "BOLT_STATUS_UNKNOWN", "unknown" }, |
19 |
|
|
{ C_ENUM(BOLT_STATUS_DISCONNECTED), "BOLT_STATUS_DISCONNECTED", "disconnected" }, |
20 |
|
|
{ C_ENUM(BOLT_STATUS_CONNECTING), "BOLT_STATUS_CONNECTING", "connecting" }, |
21 |
|
|
{ C_ENUM(BOLT_STATUS_CONNECTED), "BOLT_STATUS_CONNECTED", "connected" }, |
22 |
|
|
{ C_ENUM(BOLT_STATUS_AUTHORIZING), "BOLT_STATUS_AUTHORIZING", "authorizing" }, |
23 |
|
|
{ C_ENUM(BOLT_STATUS_AUTH_ERROR), "BOLT_STATUS_AUTH_ERROR", "auth-error" }, |
24 |
|
|
{ C_ENUM(BOLT_STATUS_AUTHORIZED), "BOLT_STATUS_AUTHORIZED", "authorized" }, |
25 |
|
|
{ C_ENUM(BOLT_STATUS_AUTHORIZED_SECURE), "BOLT_STATUS_AUTHORIZED_SECURE", "authorized-secure" }, |
26 |
|
|
{ C_ENUM(BOLT_STATUS_AUTHORIZED_NEWKEY), "BOLT_STATUS_AUTHORIZED_NEWKEY", "authorized-newkey" }, |
27 |
|
|
{ C_ENUM(BOLT_STATUS_AUTHORIZED_DPONLY), "BOLT_STATUS_AUTHORIZED_DPONLY", "authorized-dponly" }, |
28 |
|
|
{ 0, NULL, NULL } |
29 |
|
|
}; |
30 |
|
✗ |
if (g_once_init_enter (>ype_id)) { |
31 |
|
✗ |
GType new_type = g_enum_register_static (g_intern_static_string ("BoltStatus"), values); |
32 |
|
✗ |
g_once_init_leave (>ype_id, new_type); |
33 |
|
|
} |
34 |
|
✗ |
return (GType) gtype_id; |
35 |
|
|
} |
36 |
|
|
|
37 |
|
|
GType |
38 |
|
✗ |
bolt_auth_flags_get_type (void) |
39 |
|
|
{ |
40 |
|
|
static gsize gtype_id = 0; |
41 |
|
|
static const GFlagsValue values[] = { |
42 |
|
|
{ C_FLAGS(BOLT_AUTH_NONE), "BOLT_AUTH_NONE", "none" }, |
43 |
|
|
{ C_FLAGS(BOLT_AUTH_NOPCIE), "BOLT_AUTH_NOPCIE", "nopcie" }, |
44 |
|
|
{ C_FLAGS(BOLT_AUTH_SECURE), "BOLT_AUTH_SECURE", "secure" }, |
45 |
|
|
{ C_FLAGS(BOLT_AUTH_NOKEY), "BOLT_AUTH_NOKEY", "nokey" }, |
46 |
|
|
{ C_FLAGS(BOLT_AUTH_BOOT), "BOLT_AUTH_BOOT", "boot" }, |
47 |
|
|
{ 0, NULL, NULL } |
48 |
|
|
}; |
49 |
|
✗ |
if (g_once_init_enter (>ype_id)) { |
50 |
|
✗ |
GType new_type = g_flags_register_static (g_intern_static_string ("BoltAuthFlags"), values); |
51 |
|
✗ |
g_once_init_leave (>ype_id, new_type); |
52 |
|
|
} |
53 |
|
✗ |
return (GType) gtype_id; |
54 |
|
|
} |
55 |
|
|
|
56 |
|
|
GType |
57 |
|
✗ |
bolt_key_state_get_type (void) |
58 |
|
|
{ |
59 |
|
|
static gsize gtype_id = 0; |
60 |
|
|
static const GEnumValue values[] = { |
61 |
|
|
{ C_ENUM(BOLT_KEY_UNKNOWN), "BOLT_KEY_UNKNOWN", "unknown" }, |
62 |
|
|
{ C_ENUM(BOLT_KEY_MISSING), "BOLT_KEY_MISSING", "missing" }, |
63 |
|
|
{ C_ENUM(BOLT_KEY_HAVE), "BOLT_KEY_HAVE", "have" }, |
64 |
|
|
{ C_ENUM(BOLT_KEY_NEW), "BOLT_KEY_NEW", "new" }, |
65 |
|
|
{ 0, NULL, NULL } |
66 |
|
|
}; |
67 |
|
✗ |
if (g_once_init_enter (>ype_id)) { |
68 |
|
✗ |
GType new_type = g_enum_register_static (g_intern_static_string ("BoltKeyState"), values); |
69 |
|
✗ |
g_once_init_leave (>ype_id, new_type); |
70 |
|
|
} |
71 |
|
✗ |
return (GType) gtype_id; |
72 |
|
|
} |
73 |
|
|
|
74 |
|
|
GType |
75 |
|
✗ |
bolt_security_get_type (void) |
76 |
|
|
{ |
77 |
|
|
static gsize gtype_id = 0; |
78 |
|
|
static const GEnumValue values[] = { |
79 |
|
|
{ C_ENUM(BOLT_SECURITY_UNKNOWN), "BOLT_SECURITY_UNKNOWN", "unknown" }, |
80 |
|
|
{ C_ENUM(BOLT_SECURITY_NONE), "BOLT_SECURITY_NONE", "none" }, |
81 |
|
|
{ C_ENUM(BOLT_SECURITY_DPONLY), "BOLT_SECURITY_DPONLY", "dponly" }, |
82 |
|
|
{ C_ENUM(BOLT_SECURITY_USER), "BOLT_SECURITY_USER", "user" }, |
83 |
|
|
{ C_ENUM(BOLT_SECURITY_SECURE), "BOLT_SECURITY_SECURE", "secure" }, |
84 |
|
|
{ C_ENUM(BOLT_SECURITY_USBONLY), "BOLT_SECURITY_USBONLY", "usbonly" }, |
85 |
|
|
{ 0, NULL, NULL } |
86 |
|
|
}; |
87 |
|
✗ |
if (g_once_init_enter (>ype_id)) { |
88 |
|
✗ |
GType new_type = g_enum_register_static (g_intern_static_string ("BoltSecurity"), values); |
89 |
|
✗ |
g_once_init_leave (>ype_id, new_type); |
90 |
|
|
} |
91 |
|
✗ |
return (GType) gtype_id; |
92 |
|
|
} |
93 |
|
|
|
94 |
|
|
GType |
95 |
|
✗ |
bolt_policy_get_type (void) |
96 |
|
|
{ |
97 |
|
|
static gsize gtype_id = 0; |
98 |
|
|
static const GEnumValue values[] = { |
99 |
|
|
{ C_ENUM(BOLT_POLICY_UNKNOWN), "BOLT_POLICY_UNKNOWN", "unknown" }, |
100 |
|
|
{ C_ENUM(BOLT_POLICY_DEFAULT), "BOLT_POLICY_DEFAULT", "default" }, |
101 |
|
|
{ C_ENUM(BOLT_POLICY_MANUAL), "BOLT_POLICY_MANUAL", "manual" }, |
102 |
|
|
{ C_ENUM(BOLT_POLICY_AUTO), "BOLT_POLICY_AUTO", "auto" }, |
103 |
|
|
{ 0, NULL, NULL } |
104 |
|
|
}; |
105 |
|
✗ |
if (g_once_init_enter (>ype_id)) { |
106 |
|
✗ |
GType new_type = g_enum_register_static (g_intern_static_string ("BoltPolicy"), values); |
107 |
|
✗ |
g_once_init_leave (>ype_id, new_type); |
108 |
|
|
} |
109 |
|
✗ |
return (GType) gtype_id; |
110 |
|
|
} |
111 |
|
|
|
112 |
|
|
GType |
113 |
|
✗ |
bolt_auth_ctrl_get_type (void) |
114 |
|
|
{ |
115 |
|
|
static gsize gtype_id = 0; |
116 |
|
|
static const GFlagsValue values[] = { |
117 |
|
|
{ C_FLAGS(BOLT_AUTHCTRL_NONE), "BOLT_AUTHCTRL_NONE", "none" }, |
118 |
|
|
{ 0, NULL, NULL } |
119 |
|
|
}; |
120 |
|
✗ |
if (g_once_init_enter (>ype_id)) { |
121 |
|
✗ |
GType new_type = g_flags_register_static (g_intern_static_string ("BoltAuthCtrl"), values); |
122 |
|
✗ |
g_once_init_leave (>ype_id, new_type); |
123 |
|
|
} |
124 |
|
✗ |
return (GType) gtype_id; |
125 |
|
|
} |
126 |
|
|
|
127 |
|
|
GType |
128 |
|
✗ |
bolt_device_type_get_type (void) |
129 |
|
|
{ |
130 |
|
|
static gsize gtype_id = 0; |
131 |
|
|
static const GEnumValue values[] = { |
132 |
|
|
{ C_ENUM(BOLT_DEVICE_UNKNOWN_TYPE), "BOLT_DEVICE_UNKNOWN_TYPE", "unknown-type" }, |
133 |
|
|
{ C_ENUM(BOLT_DEVICE_HOST), "BOLT_DEVICE_HOST", "host" }, |
134 |
|
|
{ C_ENUM(BOLT_DEVICE_PERIPHERAL), "BOLT_DEVICE_PERIPHERAL", "peripheral" }, |
135 |
|
|
{ 0, NULL, NULL } |
136 |
|
|
}; |
137 |
|
✗ |
if (g_once_init_enter (>ype_id)) { |
138 |
|
✗ |
GType new_type = g_enum_register_static (g_intern_static_string ("BoltDeviceType"), values); |
139 |
|
✗ |
g_once_init_leave (>ype_id, new_type); |
140 |
|
|
} |
141 |
|
✗ |
return (GType) gtype_id; |
142 |
|
|
} |
143 |
|
|
|
144 |
|
|
GType |
145 |
|
✗ |
bolt_auth_mode_get_type (void) |
146 |
|
|
{ |
147 |
|
|
static gsize gtype_id = 0; |
148 |
|
|
static const GFlagsValue values[] = { |
149 |
|
|
{ C_FLAGS(BOLT_AUTH_DISABLED), "BOLT_AUTH_DISABLED", "disabled" }, |
150 |
|
|
{ C_FLAGS(BOLT_AUTH_ENABLED), "BOLT_AUTH_ENABLED", "enabled" }, |
151 |
|
|
{ 0, NULL, NULL } |
152 |
|
|
}; |
153 |
|
✗ |
if (g_once_init_enter (>ype_id)) { |
154 |
|
✗ |
GType new_type = g_flags_register_static (g_intern_static_string ("BoltAuthMode"), values); |
155 |
|
✗ |
g_once_init_leave (>ype_id, new_type); |
156 |
|
|
} |
157 |
|
✗ |
return (GType) gtype_id; |
158 |
|
|
} |
159 |
|
|
|
160 |
|
|
/* enumerations from "bolt-error.h" */ |
161 |
|
|
|
162 |
|
|
GType |
163 |
|
✗ |
bolt_error_get_type (void) |
164 |
|
|
{ |
165 |
|
|
static gsize gtype_id = 0; |
166 |
|
|
static const GEnumValue values[] = { |
167 |
|
|
{ C_ENUM(BOLT_ERROR_FAILED), "BOLT_ERROR_FAILED", "failed" }, |
168 |
|
|
{ C_ENUM(BOLT_ERROR_UDEV), "BOLT_ERROR_UDEV", "udev" }, |
169 |
|
|
{ C_ENUM(BOLT_ERROR_NOKEY), "BOLT_ERROR_NOKEY", "nokey" }, |
170 |
|
|
{ C_ENUM(BOLT_ERROR_BADKEY), "BOLT_ERROR_BADKEY", "badkey" }, |
171 |
|
|
{ C_ENUM(BOLT_ERROR_CFG), "BOLT_ERROR_CFG", "cfg" }, |
172 |
|
|
{ 0, NULL, NULL } |
173 |
|
|
}; |
174 |
|
✗ |
if (g_once_init_enter (>ype_id)) { |
175 |
|
✗ |
GType new_type = g_enum_register_static (g_intern_static_string ("BoltError"), values); |
176 |
|
✗ |
g_once_init_leave (>ype_id, new_type); |
177 |
|
|
} |
178 |
|
✗ |
return (GType) gtype_id; |
179 |
|
|
} |
180 |
|
|
|
181 |
|
|
/* Generated data ends here */ |
182 |
|
|
|
183 |
|
|
|