| 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 "ppd-enums.h" | ||
| 5 | #include <glib-object.h> | ||
| 6 | /* enumerations from "ppd-profile.h" */ | ||
| 7 | #include "ppd-profile.h" | ||
| 8 | GType | ||
| 9 | ✗ | ppd_probe_result_get_type (void) | |
| 10 | { | ||
| 11 | ✗ | static GType the_type = 0; | |
| 12 | |||
| 13 | ✗ | if (the_type == 0) | |
| 14 | { | ||
| 15 | ✗ | static const GEnumValue values[] = { | |
| 16 | { PPD_PROBE_RESULT_UNSET, | ||
| 17 | "PPD_PROBE_RESULT_UNSET", | ||
| 18 | "unset" }, | ||
| 19 | { PPD_PROBE_RESULT_DEFER, | ||
| 20 | "PPD_PROBE_RESULT_DEFER", | ||
| 21 | "defer" }, | ||
| 22 | { PPD_PROBE_RESULT_FAIL, | ||
| 23 | "PPD_PROBE_RESULT_FAIL", | ||
| 24 | "fail" }, | ||
| 25 | { PPD_PROBE_RESULT_SUCCESS, | ||
| 26 | "PPD_PROBE_RESULT_SUCCESS", | ||
| 27 | "success" }, | ||
| 28 | { 0, NULL, NULL } | ||
| 29 | }; | ||
| 30 | ✗ | the_type = g_enum_register_static ( | |
| 31 | g_intern_static_string ("PpdProbeResult"), | ||
| 32 | values); | ||
| 33 | } | ||
| 34 | ✗ | return the_type; | |
| 35 | } | ||
| 36 | GType | ||
| 37 | 5780 | ppd_profile_get_type (void) | |
| 38 | { | ||
| 39 | 5780 | static GType the_type = 0; | |
| 40 | |||
| 41 |
2/2✓ Branch 0 taken 142 times.
✓ Branch 1 taken 5638 times.
|
5780 | if (the_type == 0) |
| 42 | { | ||
| 43 | 142 | static const GFlagsValue values[] = { | |
| 44 | { PPD_PROFILE_POWER_SAVER, | ||
| 45 | "PPD_PROFILE_POWER_SAVER", | ||
| 46 | "power-saver" }, | ||
| 47 | { PPD_PROFILE_BALANCED, | ||
| 48 | "PPD_PROFILE_BALANCED", | ||
| 49 | "balanced" }, | ||
| 50 | { PPD_PROFILE_PERFORMANCE, | ||
| 51 | "PPD_PROFILE_PERFORMANCE", | ||
| 52 | "performance" }, | ||
| 53 | { 0, NULL, NULL } | ||
| 54 | }; | ||
| 55 | 142 | the_type = g_flags_register_static ( | |
| 56 | g_intern_static_string ("PpdProfile"), | ||
| 57 | values); | ||
| 58 | } | ||
| 59 | 5780 | return the_type; | |
| 60 | } | ||
| 61 | GType | ||
| 62 | 48 | ppd_power_changed_reason_get_type (void) | |
| 63 | { | ||
| 64 | 48 | static GType the_type = 0; | |
| 65 | |||
| 66 |
2/2✓ Branch 0 taken 15 times.
✓ Branch 1 taken 33 times.
|
48 | if (the_type == 0) |
| 67 | { | ||
| 68 | 15 | static const GEnumValue values[] = { | |
| 69 | { PPD_POWER_CHANGED_REASON_UNKNOWN, | ||
| 70 | "PPD_POWER_CHANGED_REASON_UNKNOWN", | ||
| 71 | "unknown" }, | ||
| 72 | { PPD_POWER_CHANGED_REASON_AC, | ||
| 73 | "PPD_POWER_CHANGED_REASON_AC", | ||
| 74 | "ac" }, | ||
| 75 | { PPD_POWER_CHANGED_REASON_BATTERY, | ||
| 76 | "PPD_POWER_CHANGED_REASON_BATTERY", | ||
| 77 | "battery" }, | ||
| 78 | { 0, NULL, NULL } | ||
| 79 | }; | ||
| 80 | 15 | the_type = g_enum_register_static ( | |
| 81 | g_intern_static_string ("PpdPowerChangedReason"), | ||
| 82 | values); | ||
| 83 | } | ||
| 84 | 48 | return the_type; | |
| 85 | } | ||
| 86 | |||
| 87 | /* Generated data ends here */ | ||
| 88 | |||
| 89 |