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>
Showing
- hw/arm/omap1.c 1 addition, 1 deletionhw/arm/omap1.c
- hw/arm/pxa2xx.c 1 addition, 1 deletionhw/arm/pxa2xx.c
- hw/arm/strongarm.c 1 addition, 1 deletionhw/arm/strongarm.c
- hw/misc/mac_via.c 1 addition, 1 deletionhw/misc/mac_via.c
- hw/misc/macio/cuda.c 1 addition, 1 deletionhw/misc/macio/cuda.c
- hw/misc/macio/pmu.c 1 addition, 1 deletionhw/misc/macio/pmu.c
- hw/ppc/spapr_rtc.c 1 addition, 1 deletionhw/ppc/spapr_rtc.c
- hw/rtc/allwinner-rtc.c 1 addition, 1 deletionhw/rtc/allwinner-rtc.c
- hw/rtc/aspeed_rtc.c 1 addition, 1 deletionhw/rtc/aspeed_rtc.c
- hw/rtc/ds1338.c 1 addition, 1 deletionhw/rtc/ds1338.c
- hw/rtc/exynos4210_rtc.c 1 addition, 1 deletionhw/rtc/exynos4210_rtc.c
- hw/rtc/goldfish_rtc.c 1 addition, 1 deletionhw/rtc/goldfish_rtc.c
- hw/rtc/m41t80.c 1 addition, 1 deletionhw/rtc/m41t80.c
- hw/rtc/m48t59.c 1 addition, 1 deletionhw/rtc/m48t59.c
- hw/rtc/mc146818rtc.c 1 addition, 1 deletionhw/rtc/mc146818rtc.c
- hw/rtc/pl031.c 1 addition, 1 deletionhw/rtc/pl031.c
- hw/rtc/twl92230.c 1 addition, 1 deletionhw/rtc/twl92230.c
- hw/rtc/xlnx-zynqmp-rtc.c 1 addition, 1 deletionhw/rtc/xlnx-zynqmp-rtc.c
- hw/s390x/tod-tcg.c 1 addition, 1 deletionhw/s390x/tod-tcg.c
- hw/scsi/megasas.c 1 addition, 1 deletionhw/scsi/megasas.c
Loading
Please register or sign in to comment