diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-04-01 15:04:58 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-04-01 15:04:58 +0200 |
commit | 5ef8b38e55c1883224fe1f01f47aba45b7b42666 (patch) | |
tree | 67a873c6a7c5263d202793314c3b3a61543fbb40 /global.h | |
download | tapasboard-5ef8b38e55c1883224fe1f01f47aba45b7b42666.tar.gz tapasboard-5ef8b38e55c1883224fe1f01f47aba45b7b42666.zip |
initial import
Diffstat (limited to 'global.h')
-rw-r--r-- | global.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/global.h b/global.h new file mode 100644 index 0000000..db9a3e6 --- /dev/null +++ b/global.h @@ -0,0 +1,23 @@ +#ifndef GLOBAL_H +#define GLOBAL_H + +#include "boardmanager.h" + +/** Time the forum config settings should be considered up to date, in days. */ +#define BOARD_CONFIG_TTL 2 + +/** Time the list of forums should be considered up to date, in days. */ +#define BOARD_LIST_TTL 2 + +/** Time we should consider the most recent topics in a forum up to date, in seconds. */ +#define FORUM_TOP_TLL 5 * 60 + +/** Time we should consider other topics in a forum up to date, in seconds. */ +#define FORUM_TOPICS_TLL 15 * 60 + +/** Number of topics per "block" in the forum view */ +#define FORUM_PAGE_SIZE 20 + +extern BoardManager *board_manager; + +#endif // GLOBAL_H |