cg_catalog.h (1553B)
1 /* Copyright (C) 2022 Université de Pau et des Pays de l'Adour UPPA 2 * Copyright (C) 2022 CNRS 3 * Copyright (C) 2022 Sorbonne Université 4 * Copyright (C) 2022 Université Paul Sabatier 5 * Copyright (C) 2022 |Meso|Star> (contact@meso-star.com) 6 * 7 * This program is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. */ 19 20 #ifndef FG_CATALOG__ 21 #define FG_CATALOG__ 22 23 #include "cg_construction_mode_0.h" 24 #include "cg_construction_mode_1.h" 25 #include "cg_construction_mode_2.h" 26 27 struct mem_allocator; 28 struct logger; 29 struct parsed_catalog; 30 struct catalog; 31 32 struct catalog { 33 struct mem_allocator* allocator; 34 struct logger* logger; 35 struct htable_dataset_cmode_0 catalog_0; 36 struct htable_dataset_cmode_1 catalog_1; 37 struct htable_dataset_cmode_2 catalog_2; 38 }; 39 40 res_T 41 create_catalog 42 (struct mem_allocator* allocator, 43 struct logger* logger, 44 struct parsed_catalog* parsed_catalog, 45 struct catalog** out_catalog); 46 47 void 48 release_catalog 49 (struct catalog* catalog); 50 51 #endif