summaryrefslogtreecommitdiffstats
path: root/apps/main_clock.hpp
blob: e1d9469fd302ed681a065daf30a531a51ef4a9c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __MAIN_CLOCK_H__
#define __MAIN_CLOCK_H__

#include "pico/util/datetime.h"
#include "../oled/ss_oled.h"

#include "../api.hpp"

namespace app_main_clock {
    int init(Api *app_api);
    int render(Api *app_api);
    int btnpressed(Api *app_api, uint gpio);
    int bgrefresh(Api *app_api, bool in_foreground);
    int destroy(Api *app_api);
}

#endif
displayed by cgit. A template cgitrc is shipped with the sources, and all parameters and default values are documented in this file. The cache When cgit is invoked it looks for a cachefile matching the request and returns it to the client. If no such cachefile exist (or if it has expired), the content for the request is written into the proper cachefile before the file is returned. If the cachefile has expired but cgit is unable to obtain a lock for it, the stale cachefile is returned to the client. This is done to favour page throughput over page freshness. The generated content contains the complete response to the client, including the http-headers "Modified" and "Expires". The mis(sing) features Submodule links in the directory listing page have a fixed format per repository. This should probably be extended to a generic map between submodule path and url. The end.