| 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 142 times.
✓ Branch 1 taken 16 times.
✓ Branch 2 taken 142 times.
✓ Branch 3 taken 142 times.
✗ Branch 4 not taken.
|
884 | G_DEFINE_TYPE (PpdDriverPlaceholder, ppd_driver_placeholder, PPD_TYPE_DRIVER_PLATFORM) |
| 20 | |||
| 21 | static GObject* | ||
| 22 | 158 | ppd_driver_placeholder_constructor (GType type, | |
| 23 | guint n_construct_params, | ||
| 24 | GObjectConstructParam *construct_params) | ||
| 25 | { | ||
| 26 | 158 | GObject *object; | |
| 27 | |||
| 28 | 158 | object = G_OBJECT_CLASS (ppd_driver_placeholder_parent_class)->constructor (type, | |
| 29 | n_construct_params, | ||
| 30 | construct_params); | ||
| 31 | 158 | g_object_set (object, | |
| 32 | "driver-name", "placeholder", | ||
| 33 | "profiles", PPD_PROFILE_POWER_SAVER | PPD_PROFILE_BALANCED, | ||
| 34 | NULL); | ||
| 35 | |||
| 36 | 158 | return object; | |
| 37 | } | ||
| 38 | |||
| 39 | static void | ||
| 40 | 142 | ppd_driver_placeholder_class_init (PpdDriverPlaceholderClass *klass) | |
| 41 | { | ||
| 42 | 142 | GObjectClass *object_class; | |
| 43 | |||
| 44 | 142 | object_class = G_OBJECT_CLASS (klass); | |
| 45 | 142 | object_class->constructor = ppd_driver_placeholder_constructor; | |
| 46 | } | ||
| 47 | |||
| 48 | static void | ||
| 49 | 158 | ppd_driver_placeholder_init (PpdDriverPlaceholder *self) | |
| 50 | { | ||
| 51 | 158 | } | |
| 52 |