Line | Branch | Exec | Source |
---|---|---|---|
1 | /* | ||
2 | * Copyright (c) 2020 Bastien Nocera <hadess@hadess.net> | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | ||
5 | * under the terms of the GNU General Public License version 3 as published by | ||
6 | * the Free Software Foundation. | ||
7 | * | ||
8 | */ | ||
9 | |||
10 | #define G_LOG_DOMAIN "PlatformDriver" | ||
11 | |||
12 | #include "ppd-driver-placeholder.h" | ||
13 | |||
14 | struct _PpdDriverPlaceholder | ||
15 | { | ||
16 | PpdDriverPlatform parent_instance; | ||
17 | }; | ||
18 | |||
19 |
4/5✓ Branch 0 taken 130 times.
✓ Branch 1 taken 4 times.
✓ Branch 2 taken 130 times.
✓ Branch 3 taken 130 times.
✗ Branch 4 not taken.
|
788 | G_DEFINE_TYPE (PpdDriverPlaceholder, ppd_driver_placeholder, PPD_TYPE_DRIVER_PLATFORM) |
20 | |||
21 | static GObject* | ||
22 | 134 | ppd_driver_placeholder_constructor (GType type, | |
23 | guint n_construct_params, | ||
24 | GObjectConstructParam *construct_params) | ||
25 | { | ||
26 | 134 | GObject *object; | |
27 | |||
28 | 134 | object = G_OBJECT_CLASS (ppd_driver_placeholder_parent_class)->constructor (type, | |
29 | n_construct_params, | ||
30 | construct_params); | ||
31 | 134 | g_object_set (object, | |
32 | "driver-name", "placeholder", | ||
33 | "profiles", PPD_PROFILE_POWER_SAVER | PPD_PROFILE_BALANCED, | ||
34 | NULL); | ||
35 | |||
36 | 134 | return object; | |
37 | } | ||
38 | |||
39 | static void | ||
40 | 130 | ppd_driver_placeholder_class_init (PpdDriverPlaceholderClass *klass) | |
41 | { | ||
42 | 130 | GObjectClass *object_class; | |
43 | |||
44 | 130 | object_class = G_OBJECT_CLASS (klass); | |
45 | 130 | object_class->constructor = ppd_driver_placeholder_constructor; | |
46 | } | ||
47 | |||
48 | static void | ||
49 | 134 | ppd_driver_placeholder_init (PpdDriverPlaceholder *self) | |
50 | { | ||
51 | 134 | } | |
52 |