stardis-ssconnect.h (1424B)
1 /* Copyright (C) 2018-2025 |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 SDIS_SS_CONNECT_H 17 #define SDIS_SS_CONNECT_H 18 19 #include <rsys/rsys.h> 20 #include <rsys/str.h> 21 22 struct mem_allocator; 23 24 /******************************************************************************* 25 * Solid-Solid connection type 26 ******************************************************************************/ 27 struct solid_solid_connect { 28 struct str name; 29 double tcr; 30 unsigned connection_id; 31 }; 32 33 res_T 34 init_ss_connect 35 (struct mem_allocator* allocator, 36 struct solid_solid_connect** dst); 37 38 void 39 release_ss_connect 40 (struct solid_solid_connect* connect, 41 struct mem_allocator* allocator); 42 43 res_T 44 str_print_ss_connect 45 (struct str* str, 46 const struct solid_solid_connect* cconnect); 47 48 #endif