star-meshtool

Mesh transformation
git clone git://git.meso-star.fr/star-meshtool.git
Log | Files | Refs | README | LICENSE

mtool.h (1297B)


      1 /* Copyright (C) 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 MTOOL_H
     17 #define MTOOL_H
     18 
     19 #include "mtool_args.h"
     20 #include <rsys/rsys.h>
     21 
     22 /* Forward declarations */
     23 struct sstl;
     24 struct sstl_writer;
     25 
     26 struct mtool {
     27   struct sstl_desc desc;
     28   struct sstl* sstl;
     29 
     30   struct mtool_args args;
     31 };
     32 #define MTOOL_NULL__ {SSTL_DESC_NULL, NULL, MTOOL_ARGS_DEFAULT}
     33 static const struct mtool MTOOL_NULL = MTOOL_NULL__;
     34 
     35 extern LOCAL_SYM res_T
     36 mtool_init
     37   (struct mtool* mtool,
     38    const struct mtool_args* args);
     39 
     40 extern LOCAL_SYM void
     41 mtool_release
     42   (struct mtool* mtool);
     43 
     44 extern LOCAL_SYM res_T
     45 mtool_run
     46   (struct mtool* mtool);
     47 
     48 #endif /* MTOOL_H */