diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-24 08:37:34 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-24 08:37:34 +0300 |
commit | 7d6ff9d0fadfe281fedf2f5da26ef577cfe07529 (patch) | |
tree | 8cb47924f95e47c73b18e6cdff7a36dfa15bac61 /src/sitespec.h | |
parent | 4824970e2b07fc89d428095ce27113756adbe47a (diff) |
Added site-specific configuration; default Titan port
When using the upload shortcut, enable configuring a specific port for Titan via site-specific parameters.
Diffstat (limited to 'src/sitespec.h')
-rw-r--r-- | src/sitespec.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/sitespec.h b/src/sitespec.h new file mode 100644 index 00000000..ee08f81f --- /dev/null +++ b/src/sitespec.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* Copyright 2021 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
2 | |||
3 | Redistribution and use in source and binary forms, with or without | ||
4 | modification, are permitted provided that the following conditions are met: | ||
5 | |||
6 | 1. Redistributions of source code must retain the above copyright notice, this | ||
7 | list of conditions and the following disclaimer. | ||
8 | 2. 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 | |||
12 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
13 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
14 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
15 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
16 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
17 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
18 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
19 | ANY 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 | ||
21 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | ||
22 | |||
23 | #pragma once | ||
24 | |||
25 | #include <the_Foundation/string.h> | ||
26 | |||
27 | iDeclareType(SiteSpec) | ||
28 | |||
29 | enum iSiteSpecKey { | ||
30 | titanPort_SiteSpecKey, | ||
31 | }; | ||
32 | |||
33 | void init_SiteSpec (const char *saveDir); | ||
34 | void deinit_SiteSpec (void); | ||
35 | |||
36 | void setValue_SiteSpec (const iString *site, enum iSiteSpecKey key, int value); /* changes saved immediately */ | ||
37 | int value_SiteSpec (const iString *site, enum iSiteSpecKey key); | ||