]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/hibernate-resume/hibernate-resume-config.h
Merge pull request #30513 from rpigott/resolved-ede
[thirdparty/systemd.git] / src / hibernate-resume / hibernate-resume-config.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include <stdbool.h>
5
6 #include "sd-id128.h"
7
8 typedef struct KernelHibernateLocation KernelHibernateLocation;
9 typedef struct EFIHibernateLocation EFIHibernateLocation;
10
11 typedef struct HibernateInfo {
12 const char *device;
13 uint64_t offset; /* in memory pages */
14
15 KernelHibernateLocation *cmdline;
16 EFIHibernateLocation *efi;
17 } HibernateInfo;
18
19 void hibernate_info_done(HibernateInfo *info);
20
21 int acquire_hibernate_info(HibernateInfo *ret);
22
23 #if ENABLE_EFI
24
25 void compare_hibernate_location_and_warn(const HibernateInfo *info);
26
27 #else
28
29 static inline void compare_hibernate_location_and_warn(const HibernateInfo *info) {
30 return;
31 }
32
33 #endif