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 "cc-usage-page-enums.h" |
5 |
|
|
#include "usage/cc-usage-page.h" |
6 |
|
|
|
7 |
|
|
#define C_ENUM(v) ((gint) v) |
8 |
|
|
#define C_FLAGS(v) ((guint) v) |
9 |
|
|
|
10 |
|
|
/* enumerations from "cc-usage-page.h" */ |
11 |
|
|
|
12 |
|
|
GType |
13 |
|
✗ |
cc_usage_page_purge_after_get_type (void) |
14 |
|
|
{ |
15 |
|
|
static gsize gtype_id = 0; |
16 |
|
|
static const GEnumValue values[] = { |
17 |
|
|
{ C_ENUM(CC_USAGE_PAGE_PURGE_AFTER_1_HOUR), "CC_USAGE_PAGE_PURGE_AFTER_1_HOUR", "1-hour" }, |
18 |
|
|
{ C_ENUM(CC_USAGE_PAGE_PURGE_AFTER_1_DAY), "CC_USAGE_PAGE_PURGE_AFTER_1_DAY", "1-day" }, |
19 |
|
|
{ C_ENUM(CC_USAGE_PAGE_PURGE_AFTER_2_DAYS), "CC_USAGE_PAGE_PURGE_AFTER_2_DAYS", "2-days" }, |
20 |
|
|
{ C_ENUM(CC_USAGE_PAGE_PURGE_AFTER_3_DAYS), "CC_USAGE_PAGE_PURGE_AFTER_3_DAYS", "3-days" }, |
21 |
|
|
{ C_ENUM(CC_USAGE_PAGE_PURGE_AFTER_4_DAYS), "CC_USAGE_PAGE_PURGE_AFTER_4_DAYS", "4-days" }, |
22 |
|
|
{ C_ENUM(CC_USAGE_PAGE_PURGE_AFTER_5_DAYS), "CC_USAGE_PAGE_PURGE_AFTER_5_DAYS", "5-days" }, |
23 |
|
|
{ C_ENUM(CC_USAGE_PAGE_PURGE_AFTER_6_DAYS), "CC_USAGE_PAGE_PURGE_AFTER_6_DAYS", "6-days" }, |
24 |
|
|
{ C_ENUM(CC_USAGE_PAGE_PURGE_AFTER_7_DAYS), "CC_USAGE_PAGE_PURGE_AFTER_7_DAYS", "7-days" }, |
25 |
|
|
{ C_ENUM(CC_USAGE_PAGE_PURGE_AFTER_14_DAYS), "CC_USAGE_PAGE_PURGE_AFTER_14_DAYS", "14-days" }, |
26 |
|
|
{ C_ENUM(CC_USAGE_PAGE_PURGE_AFTER_30_DAYS), "CC_USAGE_PAGE_PURGE_AFTER_30_DAYS", "30-days" }, |
27 |
|
|
{ 0, NULL, NULL } |
28 |
|
|
}; |
29 |
|
✗ |
if (g_once_init_enter (>ype_id)) { |
30 |
|
✗ |
GType new_type = g_enum_register_static (g_intern_static_string ("CcUsagePagePurgeAfter"), values); |
31 |
|
✗ |
g_once_init_leave (>ype_id, new_type); |
32 |
|
|
} |
33 |
|
✗ |
return (GType) gtype_id; |
34 |
|
|
} |
35 |
|
|
|
36 |
|
|
GType |
37 |
|
✗ |
cc_usage_page_retain_history_get_type (void) |
38 |
|
|
{ |
39 |
|
|
static gsize gtype_id = 0; |
40 |
|
|
static const GEnumValue values[] = { |
41 |
|
|
{ C_ENUM(CC_USAGE_PAGE_RETAIN_HISTORY_1_DAY), "CC_USAGE_PAGE_RETAIN_HISTORY_1_DAY", "1-day" }, |
42 |
|
|
{ C_ENUM(CC_USAGE_PAGE_RETAIN_HISTORY_7_DAYS), "CC_USAGE_PAGE_RETAIN_HISTORY_7_DAYS", "7-days" }, |
43 |
|
|
{ C_ENUM(CC_USAGE_PAGE_RETAIN_HISTORY_30_DAYS), "CC_USAGE_PAGE_RETAIN_HISTORY_30_DAYS", "30-days" }, |
44 |
|
|
{ C_ENUM(CC_USAGE_PAGE_RETAIN_HISTORY_FOREVER), "CC_USAGE_PAGE_RETAIN_HISTORY_FOREVER", "forever" }, |
45 |
|
|
{ 0, NULL, NULL } |
46 |
|
|
}; |
47 |
|
✗ |
if (g_once_init_enter (>ype_id)) { |
48 |
|
✗ |
GType new_type = g_enum_register_static (g_intern_static_string ("CcUsagePageRetainHistory"), values); |
49 |
|
✗ |
g_once_init_leave (>ype_id, new_type); |
50 |
|
|
} |
51 |
|
✗ |
return (GType) gtype_id; |
52 |
|
|
} |
53 |
|
|
|
54 |
|
|
/* Generated data ends here */ |
55 |
|
|
|
56 |
|
|
|