summaryrefslogtreecommitdiff
path: root/src/sitespec.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-24 08:37:34 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-24 08:37:34 +0300
commit7d6ff9d0fadfe281fedf2f5da26ef577cfe07529 (patch)
tree8cb47924f95e47c73b18e6cdff7a36dfa15bac61 /src/sitespec.h
parent4824970e2b07fc89d428095ce27113756adbe47a (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.h37
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
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
23#pragma once
24
25#include <the_Foundation/string.h>
26
27iDeclareType(SiteSpec)
28
29enum iSiteSpecKey {
30 titanPort_SiteSpecKey,
31};
32
33void init_SiteSpec (const char *saveDir);
34void deinit_SiteSpec (void);
35
36void setValue_SiteSpec (const iString *site, enum iSiteSpecKey key, int value); /* changes saved immediately */
37int value_SiteSpec (const iString *site, enum iSiteSpecKey key);