source:
mainline/uspace/lib/c/include/device/clock_dev.h@
c6f23a7
| Last change on this file since c6f23a7 was d7f7a4a, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 475 bytes | |
| Rev | Line | |
|---|---|---|
| [02b38730] | 1 | /* |
| [d7f7a4a] | 2 | * SPDX-FileCopyrightText: 2012 Maurizio Lombardi |
| [02b38730] | 3 | * |
| [d7f7a4a] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
| [02b38730] | 5 | */ |
| 6 | ||
| 7 | /** @addtogroup libc | |
| 8 | * @{ | |
| 9 | */ | |
| 10 | /** @file | |
| 11 | */ | |
| 12 | ||
| [4805495] | 13 | #ifndef _LIBC_DEVICE_CLOCK_DEV_H_ |
| 14 | #define _LIBC_DEVICE_CLOCK_DEV_H_ | |
| [02b38730] | 15 | |
| 16 | #include <async.h> | |
| 17 | #include <time.h> | |
| 18 | ||
| 19 | typedef enum { | |
| 20 | CLOCK_DEV_TIME_GET = 0, | |
| 21 | CLOCK_DEV_TIME_SET, | |
| 22 | } clock_dev_method_t; | |
| 23 | ||
| [b7fd2a0] | 24 | extern errno_t clock_dev_time_get(async_sess_t *, struct tm *); |
| 25 | extern errno_t clock_dev_time_set(async_sess_t *, struct tm *); | |
| [02b38730] | 26 | |
| 27 | #endif |
Note:
See TracBrowser
for help on using the repository browser.
