RetroArch
platform_time.h
Go to the documentation of this file.
1 
23 #ifndef MBEDTLS_PLATFORM_TIME_H
24 #define MBEDTLS_PLATFORM_TIME_H
25 
26 #if !defined(MBEDTLS_CONFIG_FILE)
27 #include "config.h"
28 #else
29 #include MBEDTLS_CONFIG_FILE
30 #endif
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
44 /*
45  * The time_t datatype
46  */
47 #if defined(MBEDTLS_PLATFORM_TIME_TYPE_MACRO)
48 typedef MBEDTLS_PLATFORM_TIME_TYPE_MACRO mbedtls_time_t;
49 #else
50 /* For time_t */
51 #include <time.h>
52 typedef time_t mbedtls_time_t;
53 #endif /* MBEDTLS_PLATFORM_TIME_TYPE_MACRO */
54 
55 /*
56  * The function pointers for time
57  */
58 #if defined(MBEDTLS_PLATFORM_TIME_ALT)
60 
68 int mbedtls_platform_set_time( mbedtls_time_t (*time_func)( mbedtls_time_t* time ) );
69 #else
70 #if defined(MBEDTLS_PLATFORM_TIME_MACRO)
71 #define mbedtls_time MBEDTLS_PLATFORM_TIME_MACRO
72 #else
73 #define mbedtls_time time
74 #endif /* MBEDTLS_PLATFORM_TIME_MACRO */
75 #endif /* MBEDTLS_PLATFORM_TIME_ALT */
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif /* platform_time.h */
Configuration options (set of defines)
time_t mbedtls_time_t
Definition: platform_time.h:52
time_t time(time_t *timer)
#define mbedtls_time
Definition: platform_time.h:73