Applied our style guide, made the headers C++ safe.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5139 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -5,11 +5,21 @@
|
|||||||
#ifndef KERNEL_ARCH_REAL_TIME_CLOCK_H
|
#ifndef KERNEL_ARCH_REAL_TIME_CLOCK_H
|
||||||
#define KERNEL_ARCH_REAL_TIME_CLOCK_H
|
#define KERNEL_ARCH_REAL_TIME_CLOCK_H
|
||||||
|
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
void arch_rtc_set_hw_time(uint32 seconds);
|
void arch_rtc_set_hw_time(uint32 seconds);
|
||||||
// Set HW clock to 'seconds' since 1/1/1970
|
// Set HW clock to 'seconds' since 1/1/1970
|
||||||
uint32 arch_rtc_get_hw_time(void);
|
uint32 arch_rtc_get_hw_time(void);
|
||||||
// Returns number of seconds since 1/1/1970 as stored in HW
|
// Returns number of seconds since 1/1/1970 as stored in HW
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* KERNEL_ARCH_REAL_TIME_CLOCK_H */
|
#endif /* KERNEL_ARCH_REAL_TIME_CLOCK_H */
|
||||||
|
|||||||
@@ -9,14 +9,22 @@
|
|||||||
#include <KernelExport.h>
|
#include <KernelExport.h>
|
||||||
|
|
||||||
|
|
||||||
int rtc_init(kernel_args *ka);
|
#ifdef __cplusplus
|
||||||
// Initialize the real-time clock.
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
void rtc_set_system_time(uint32 current_time);
|
status_t rtc_init(kernel_args *ka);
|
||||||
// Set the system time. 'current_time' is the number of seconds elapsed since
|
// Initialize the real-time clock.
|
||||||
// Jan. 1, 1970.
|
|
||||||
|
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);
|
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 */
|
#endif /* _KERNEL_REAL_TIME_CLOCK_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user