diff --git a/headers/private/kernel/arch/real_time_clock.h b/headers/private/kernel/arch/real_time_clock.h index 0b4be8ad25..0eaba6b36a 100644 --- a/headers/private/kernel/arch/real_time_clock.h +++ b/headers/private/kernel/arch/real_time_clock.h @@ -5,11 +5,21 @@ #ifndef KERNEL_ARCH_REAL_TIME_CLOCK_H #define KERNEL_ARCH_REAL_TIME_CLOCK_H + #include + +#ifdef __cplusplus +extern "C" { +#endif + void arch_rtc_set_hw_time(uint32 seconds); // Set HW clock to 'seconds' since 1/1/1970 uint32 arch_rtc_get_hw_time(void); // Returns number of seconds since 1/1/1970 as stored in HW +#ifdef __cplusplus +} +#endif + #endif /* KERNEL_ARCH_REAL_TIME_CLOCK_H */ diff --git a/headers/private/kernel/real_time_clock.h b/headers/private/kernel/real_time_clock.h index 54e7b8e2e1..64bfd2f526 100644 --- a/headers/private/kernel/real_time_clock.h +++ b/headers/private/kernel/real_time_clock.h @@ -9,14 +9,22 @@ #include -int rtc_init(kernel_args *ka); -// Initialize the real-time clock. +#ifdef __cplusplus +extern "C" { +#endif -void rtc_set_system_time(uint32 current_time); -// Set the system time. 'current_time' is the number of seconds elapsed since -// Jan. 1, 1970. +status_t rtc_init(kernel_args *ka); + // Initialize the real-time clock. + +void rtc_set_system_time(uint32 currentTime); + // Set the system time. 'currentTime' is the number of seconds + // elapsed since Jan. 1, 1970. bigtime_t rtc_boot_time(void); -// Returns the time at which the system was booted in microseconds since Jan 1, 1970. + // Returns the time at which the system was booted in microseconds since Jan 1, 1970. + +#ifdef __cplusplus +} +#endif #endif /* _KERNEL_REAL_TIME_CLOCK_H */