00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00016 #ifndef __ZRTP_IFACE_SYSTEM_H__
00017 #define __ZRTP_IFACE_SYSTEM_H__
00018
00019 #include "zrtp_config.h"
00020 #include "zrtp_types.h"
00021
00022 #if defined(__cplusplus)
00023 extern "C"
00024 {
00025 #endif
00026
00027
00028
00029
00030
00031
00050 typedef uint64_t zrtp_time_t;
00051
00052
00064 extern void* zrtp_sys_alloc(unsigned int size);
00065
00074 extern void zrtp_sys_free(void* obj);
00075
00088 extern void* zrtp_memcpy(void* dest, const void* src, unsigned int length);
00089
00098 extern void *zrtp_memset(void *s, int c, unsigned int n);
00099
00106 extern zrtp_time_t zrtp_time_now();
00107
00110
00111
00112
00113
00133 extern zrtp_status_t zrtp_mutex_init(zrtp_mutex_t** mutex);
00134
00146 extern zrtp_status_t zrtp_mutex_destroy(zrtp_mutex_t* mutex);
00147
00160 extern zrtp_status_t zrtp_mutex_lock(zrtp_mutex_t* mutex);
00161
00175 extern zrtp_status_t zrtp_mutex_unlock(zrtp_mutex_t* mutex);
00176
00179 #if defined(__cplusplus)
00180 }
00181 #endif
00182
00183 #endif