X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcommon.h;h=79a83ec4579a4178f77b1bc1a3cab5983d3dadbf;hb=e44a32c44326ebe6ee10333138fabc337c067281;hp=351fe3f8c1bdd7ed56d332cce5a8b087abd74529;hpb=b988bcc13c655299bc3796cccaa583f62704e759;p=collection4.git diff --git a/src/common.h b/src/common.h index 351fe3f..79a83ec 100644 --- a/src/common.h +++ b/src/common.h @@ -47,5 +47,14 @@ uint32_t fade_color (uint32_t color); char *strtolower (char *str); char *strtolower_copy (const char *str); +/* + * Parses the time parameters "begin" and "end" and returns the specified time + * in epoch in the longs pointed to by "ret_begin" and "ret_end". Returns + * non-zero on failure. If the optional "ret_now" pointer is not-NULL, the + * current time will be assigned to it. + */ +int get_time_args (long *ret_begin, long *ret_end, + long *ret_now); + #endif /* COMMON_H */ /* vim: set sw=2 sts=2 et fdm=marker : */