2 online-core.h is autogenerated from online-core.1.h
3 Common parts of the online interface
6 Copyright (C) 2022 Balthasar SzczepaĆski
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU Affero General Public License as
10 published by the Free Software Foundation, either version 3 of the
11 License, or (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU Affero General Public License for more details.
18 You should have received a copy of the GNU Affero General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 Requires cgilib (http://www.infodrom.org/projects/cgilib/)
27 // ###C_USERAGENT: #define USERAGENT "enhance"
29 // ###C_CP_PATH: #define CP_PATH "cp"
30 // ###C_WGET_PATH: #define WGET_PATH "wget"
31 // ###C_RM_PATH: #define RM_PATH "rm"
33 // ###C_TEMP_PATH: #define TEMP_PATH "/botm/tmp/enhance"
35 // ###C_BLUENH_PATH: #define NPB_PATH "/botm/bin/bluenh"
36 // ###C_DIFF_PATH: #define DIFF_PATH "/botm/bin/diff"
37 // ###C_NOFADING_PATH: #define NOFADING_PATH "/botm/bin/nofading"
38 // ###C_NPB_PATH: #define NPB_PATH "/botm/bin/npb"
39 // ###C_PAL_MIX_PATH: #define PAL_MIX_PATH "/botm/bin/pal_mix"
40 // ###C_PAL_MIXDIFF_PATH: #define PAL_MIXDIFF_PATH "/botm/bin/pal_mixdiff"
41 // ###C_PAL_UNMIX_PATH: #define PAL_UNMIX_PATH "/botm/bin/pal_unmix"
42 // ###C_REVEAL_PATH: #define REVEAL_PATH "/botm/bin/reveal"
44 int cp (char *src, char *dst);
45 int wget (char *url, char *dst);
47 void make_tmp_path(char *str, size_t n, unsigned int i, char *ext);
48 int get_file(s_cgi *cgi, char *name, char *dest, char **path);
49 int send_file (char *path, char *content_type, unsigned status);
50 int send_data (const uint8_t *address, size_t size, char *content_type, unsigned status);