Commit d8e2d330 authored by Federico Vaga's avatar Federico Vaga

lib: add timestamp compare function

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 26505acc
......@@ -43,6 +43,17 @@ struct fmctdc_time {
};
/**
* It compares two time-stamps.
* @param[in] a first time stamp
* @param[in] b second time stamp
* @return like memcmp(2) and strcmp(2)
*/
static inline int _fmctdc_tscmp(struct fmctdc_time *a, struct fmctdc_time *b)
{
return a->gseq_id - b->seq_id;
}
/**
* @file fmctdc-lib.c
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment