diff options
author | Peter Maydell | 2021-11-29 21:55:05 +0100 |
---|---|---|
committer | Peter Maydell | 2022-01-28 15:29:46 +0100 |
commit | 2f93d8b04a1bcc8e0a576e35ae13c96af42634db (patch) | |
tree | 43d1e77588ca78e05ee83d90dedcc3bfec6fca4f /hw/rtc/ds1338.c | |
parent | hw/char/exynos4210_uart: Fix crash on trying to load VM state (diff) | |
download | qemu-2f93d8b04a1bcc8e0a576e35ae13c96af42634db.tar.gz qemu-2f93d8b04a1bcc8e0a576e35ae13c96af42634db.tar.xz qemu-2f93d8b04a1bcc8e0a576e35ae13c96af42634db.zip |
rtc: Move RTC function prototypes to their own header
softmmu/rtc.c defines two public functions: qemu_get_timedate() and
qemu_timedate_diff(). Currently we keep the prototypes for these in
qemu-common.h, but most files don't need them. Move them to their
own header, a new include/sysemu/rtc.h.
Since the C files using these two functions did not need to include
qemu-common.h for any other reason, we can remove those include lines
when we add the include of the new rtc.h.
The license for the .h file follows that of the softmmu/rtc.c
where both the functions are defined.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/rtc/ds1338.c')
-rw-r--r-- | hw/rtc/ds1338.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/rtc/ds1338.c b/hw/rtc/ds1338.c index bc5ce1a9f4..36d8121ddd 100644 --- a/hw/rtc/ds1338.c +++ b/hw/rtc/ds1338.c @@ -11,12 +11,12 @@ */ #include "qemu/osdep.h" -#include "qemu-common.h" #include "hw/i2c/i2c.h" #include "migration/vmstate.h" #include "qemu/bcd.h" #include "qemu/module.h" #include "qom/object.h" +#include "sysemu/rtc.h" /* Size of NVRAM including both the user-accessible area and the * secondary register area. |