Mercurial > paster
diff paste.h @ 51:07b6887d3557
pasterd: split into individual pages
While here add a similar mini.css theme as in imgup.
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 21 Dec 2020 18:22:44 +0100 |
parents | 48834441dc86 |
children | fba88439ec0a |
line wrap: on
line diff
--- a/paste.h Mon Apr 27 12:08:16 2020 +0200 +++ b/paste.h Mon Dec 21 18:22:44 2020 +0100 @@ -22,16 +22,11 @@ #include <stdbool.h> #include <time.h> -#define PASTE_HOUR 3600 /*!< Seconds in one hour. */ -#define PASTE_DAY 86400 /*!< Seconds in one day. */ -#define PASTE_WEEK 604800 /*!< Seconds in one week. */ -#define PASTE_MONTH 2592000 /*!< Rounded to 30 days. */ +#define PASTE_DURATION_HOUR 3600 /* Seconds in one hour. */ +#define PASTE_DURATION_DAY 86400 /* Seconds in one day. */ +#define PASTE_DURATION_WEEK 604800 /* Seconds in one week. */ +#define PASTE_DURATION_MONTH 2592000 /* Rounded to 30 days. */ -/** - * \brief Paste structure. - * - * Every string in the paste is assumed to be allocated on the heap. - */ struct paste { char *id; char *title; @@ -40,7 +35,7 @@ char *code; time_t timestamp; bool visible; - long long int duration; + long long int duration; }; void