green-args.h (1241B)
1 /* Copyright (C) 2020-2022, 2024 |Méso|Star> (contact@meso-star.com) 2 * 3 * This program is free software: you can redistribute it and/or modify 4 * it under the terms of the GNU General Public License as published by 5 * the Free Software Foundation, either version 3 of the License, or 6 * (at your option) any later version. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>. */ 15 16 #ifndef GREEN_ARGS_H 17 #define GREEN_ARGS_H 18 19 #include <rsys/rsys.h> 20 21 struct logger; 22 struct mem_allocator; 23 struct args; 24 25 struct args { 26 struct logger* logger; 27 struct mem_allocator* allocator; 28 char* green_filename; 29 char* command_filename; 30 char* info_filename; 31 unsigned nthreads; 32 int mode; 33 int verbose; 34 }; 35 36 void 37 init_args 38 (struct logger* logger, 39 struct mem_allocator* allocator, 40 struct args* args); 41 42 res_T 43 parse_args 44 (const int argc, 45 char** argv, 46 struct args* args); 47 48 #endif /* GREEN_ARGS_H */