4 #include "dynamic_api.h"
11 // for time values all functions are using POSIX struct tm
13 typedef struct tm timestamp;
16 // new_timestamp() - allocate a new timestamp
19 // clock (in) initial value or 0 if not available
22 // pointer to timestamp object or NULL if out of memory
24 DYNAMIC_API timestamp * new_timestamp(time_t clock);
27 // free_timestamp() - free memory occupied by timestamp
30 // ts (in) pointer to timestamp to free
32 DYNAMIC_API void free_timestamp(timestamp *ts);
35 // timestamp_dup() - duplicate a timestamp
38 // src (in) pointer to timestamp to duplicate
41 // pointer to copy or NULL if out of memory
43 DYNAMIC_API timestamp * timestamp_dup(const timestamp *src);