summaryrefslogtreecommitdiff
path: root/src/app.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-02 11:25:03 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-02 11:25:03 +0300
commit1e548eac8c63922315f89c96436b622615c488c7 (patch)
treed2c36fdaaa0bcc42cbc34bb804de5a7201dba2b1 /src/app.h
parent8ed2faadc4ca2497fc3b2e9d2eae6d40921de918 (diff)
parente2b5ea14d25dbbb62a1e827803e67c30df79c6a1 (diff)
Merge branch 'master' of skyjake.fi:skyjake/lagrange
Diffstat (limited to 'src/app.h')
-rw-r--r--src/app.h35
1 files changed, 30 insertions, 5 deletions
diff --git a/src/app.h b/src/app.h
index 11c8c4a3..3d4808bc 100644
--- a/src/app.h
+++ b/src/app.h
@@ -1,3 +1,25 @@
1/* Copyright 2020 Jaakko Keränen <jaakko.keranen@iki.fi>
2
3Redistribution and use in source and binary forms, with or without
4modification, are permitted provided that the following conditions are met:
5
61. Redistributions of source code must retain the above copyright notice, this
7 list of conditions and the following disclaimer.
82. Redistributions in binary form must reproduce the above copyright notice,
9 this list of conditions and the following disclaimer in the documentation
10 and/or other materials provided with the distribution.
11
12THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
13ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
16ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
18LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
19ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
22
1#pragma once 23#pragma once
2 24
3/* Application core: event loop, base event processing, audio synth. */ 25/* Application core: event loop, base event processing, audio synth. */
@@ -26,14 +48,16 @@ enum iUserEventCode {
26const iString *execPath_App (void); 48const iString *execPath_App (void);
27const iString *dataDir_App (void); 49const iString *dataDir_App (void);
28 50
29int run_App (int argc, char **argv); 51int run_App (int argc, char **argv);
30void processEvents_App (enum iAppEventMode mode); 52void processEvents_App (enum iAppEventMode mode);
31iBool handleCommand_App (const char *cmd); 53iBool handleCommand_App (const char *cmd);
32void refresh_App (void); 54void refresh_App (void);
33iBool isRefreshPending_App(void); 55iBool isRefreshPending_App (void);
56uint32_t elapsedSinceLastTicker_App (void); /* milliseconds */
34 57
35int zoom_App (void); 58int zoom_App (void);
36enum iColorTheme colorTheme_App (void); 59enum iColorTheme colorTheme_App (void);
60const iString * schemeProxy_App (iRangecc scheme);
37 61
38iGmCerts * certs_App (void); 62iGmCerts * certs_App (void);
39iVisited * visited_App (void); 63iVisited * visited_App (void);
@@ -53,3 +77,4 @@ iLocalDef void postCommandString_App(const iString *command) {
53} 77}
54 78
55void openInDefaultBrowser_App (const iString *url); 79void openInDefaultBrowser_App (const iString *url);
80void revealPath_App (const iString *path);