]> bicyclesonthemoon.info Git - ott/enhance/blob - standalone.c
Fully working online interface; for now bluenh only.
[ott/enhance] / standalone.c
1 /*
2 standalone.c
3 general main wrapper for the subtools
4 01.12.2022
5
6 Copyright (C) 2022  Balthasar SzczepaƄski
7
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.
12
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.
17
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/>.
20
21 */
22
23 #include "core.h"
24 // ###C_INCLUDE: #include "TOOL_NAME.h"
25
26 // ###C_SUBTOOL: #define SUBTOOL subtool_TOOL_NAME
27
28 int main (int argc, char **argv)
29 {
30         int r;
31         char *error_text = NO_STR;
32         
33         r = init();
34         if (r!=0)
35                 finish(r, INIT_FAILED);
36         
37         r = SUBTOOL(argc, argv, 1, &error_text);
38         
39         if (r!=0)
40                 finish(r, error_text);
41         
42         finish(0, "");
43 }