GCC Code Coverage Report


Directory: ./
File: _build/subprojects/gvc/gvc-enum-types.c
Date: 2024-05-04 07:58:27
Exec Total Coverage
Lines: 0 20 0.0%
Functions: 0 4 0.0%
Branches: 0 24 0.0%

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 "gvc-enum-types.h"
5 #include "gvc-channel-map.h"
6 #include "gvc-mixer-card.h"
7 #include "gvc-mixer-control.h"
8 #include "gvc-mixer-event-role.h"
9 #include "gvc-mixer-sink.h"
10 #include "gvc-mixer-sink-input.h"
11 #include "gvc-mixer-source.h"
12 #include "gvc-mixer-source-output.h"
13 #include "gvc-mixer-stream.h"
14 #include "gvc-mixer-ui-device.h"
15
16 #define C_ENUM(v) ((gint) v)
17 #define C_FLAGS(v) ((guint) v)
18
19 /* enumerations from "gvc-mixer-control.h" */
20
21 GType
22 gvc_mixer_control_state_get_type (void)
23 {
24 static gsize gtype_id = 0;
25 static const GEnumValue values[] = {
26 { C_ENUM(GVC_STATE_CLOSED), "GVC_STATE_CLOSED", "closed" },
27 { C_ENUM(GVC_STATE_READY), "GVC_STATE_READY", "ready" },
28 { C_ENUM(GVC_STATE_CONNECTING), "GVC_STATE_CONNECTING", "connecting" },
29 { C_ENUM(GVC_STATE_FAILED), "GVC_STATE_FAILED", "failed" },
30 { 0, NULL, NULL }
31 };
32 if (g_once_init_enter (&gtype_id)) {
33 GType new_type = g_enum_register_static (g_intern_static_string ("GvcMixerControlState"), values);
34 g_once_init_leave (&gtype_id, new_type);
35 }
36 return (GType) gtype_id;
37 }
38
39 GType
40 gvc_headset_port_choice_get_type (void)
41 {
42 static gsize gtype_id = 0;
43 static const GFlagsValue values[] = {
44 { C_FLAGS(GVC_HEADSET_PORT_CHOICE_NONE), "GVC_HEADSET_PORT_CHOICE_NONE", "none" },
45 { C_FLAGS(GVC_HEADSET_PORT_CHOICE_HEADPHONES), "GVC_HEADSET_PORT_CHOICE_HEADPHONES", "headphones" },
46 { C_FLAGS(GVC_HEADSET_PORT_CHOICE_HEADSET), "GVC_HEADSET_PORT_CHOICE_HEADSET", "headset" },
47 { C_FLAGS(GVC_HEADSET_PORT_CHOICE_MIC), "GVC_HEADSET_PORT_CHOICE_MIC", "mic" },
48 { 0, NULL, NULL }
49 };
50 if (g_once_init_enter (&gtype_id)) {
51 GType new_type = g_flags_register_static (g_intern_static_string ("GvcHeadsetPortChoice"), values);
52 g_once_init_leave (&gtype_id, new_type);
53 }
54 return (GType) gtype_id;
55 }
56
57 /* enumerations from "gvc-mixer-stream.h" */
58
59 GType
60 gvc_mixer_stream_state_get_type (void)
61 {
62 static gsize gtype_id = 0;
63 static const GEnumValue values[] = {
64 { C_ENUM(GVC_STREAM_STATE_INVALID), "GVC_STREAM_STATE_INVALID", "invalid" },
65 { C_ENUM(GVC_STREAM_STATE_RUNNING), "GVC_STREAM_STATE_RUNNING", "running" },
66 { C_ENUM(GVC_STREAM_STATE_IDLE), "GVC_STREAM_STATE_IDLE", "idle" },
67 { C_ENUM(GVC_STREAM_STATE_SUSPENDED), "GVC_STREAM_STATE_SUSPENDED", "suspended" },
68 { 0, NULL, NULL }
69 };
70 if (g_once_init_enter (&gtype_id)) {
71 GType new_type = g_enum_register_static (g_intern_static_string ("GvcMixerStreamState"), values);
72 g_once_init_leave (&gtype_id, new_type);
73 }
74 return (GType) gtype_id;
75 }
76
77 /* enumerations from "gvc-mixer-ui-device.h" */
78
79 GType
80 gvc_mixer_ui_device_direction_get_type (void)
81 {
82 static gsize gtype_id = 0;
83 static const GEnumValue values[] = {
84 { C_ENUM(UIDeviceInput), "UIDeviceInput", "input" },
85 { C_ENUM(UIDeviceOutput), "UIDeviceOutput", "output" },
86 { 0, NULL, NULL }
87 };
88 if (g_once_init_enter (&gtype_id)) {
89 GType new_type = g_enum_register_static (g_intern_static_string ("GvcMixerUIDeviceDirection"), values);
90 g_once_init_leave (&gtype_id, new_type);
91 }
92 return (GType) gtype_id;
93 }
94
95 /* Generated data ends here */
96
97