cg_types.c (1239B)
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 #include "cg_types.h" 21 22 #include <rsys/rsys.h> 23 #include <star/scad.h> 24 25 void 26 pgeom_release(struct scad_geometry** data) { 27 ASSERT(data); 28 SCAD(geometry_ref_put(*data)); 29 } 30 31 res_T 32 pgeom_copy(struct scad_geometry** dst, struct scad_geometry* const* src) { 33 ASSERT(dst && src); 34 *dst = *src; 35 SCAD(geometry_ref_get(*src)); 36 return RES_OK; 37 } 38 39