star-schiff

Library for estimating radiative properties
git clone git://git.meso-star.com/star-schiff.git
Log | Files | Refs | README | LICENSE

sschiff_device.h (1656B)


      1 /* Copyright (C) 2015, 2016, 2026 Centre National de la Recherche Scientifique
      2  * Copyright (C) 2026 Clermont Auvergne INP
      3  * Copyright (C) 2026 Institut Mines Télécom Albi-Carmaux
      4  * Copyright (C) 2020, 2021, 2023, 2026 |Méso|Star> (contact@meso-star.com)
      5  * Copyright (C) 2026 Université de Lorraine
      6  * Copyright (C) 2026 Université de Toulouse
      7  *
      8  * This program is free software: you can redistribute it and/or modify
      9  * it under the terms of the GNU General Public License as published by
     10  * the Free Software Foundation, either version 3 of the License, or
     11  * (at your option) any later version.
     12  *
     13  * This program is distributed in the hope that it will be useful,
     14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     16  * GNU General Public License for more details.
     17  *
     18  * You should have received a copy of the GNU General Public License
     19  * along with this program. If not, see <http://www.gnu.org/licenses/>. */
     20 
     21 #ifndef SSCHIFF_DEVICE_H
     22 #define SSCHIFF_DEVICE_H
     23 
     24 #include <rsys/ref_count.h>
     25 
     26 struct logger;
     27 struct mem_allocator;
     28 struct s3d_device;
     29 
     30 struct sschiff_device {
     31   int verbose;
     32   unsigned nthreads;
     33   struct logger* logger;
     34   struct s3d_device** s3d;
     35 
     36   struct mem_allocator* allocator;
     37   ref_T ref;
     38 };
     39 
     40 extern LOCAL_SYM void
     41 log_error
     42   (struct sschiff_device* dev,
     43    const char* msg,
     44    ...)
     45 #ifdef COMPILER_GCC
     46   __attribute((format(printf, 2, 3)))
     47 #endif
     48 ;
     49 
     50 extern LOCAL_SYM void
     51 log_warning
     52   (struct sschiff_device* dev,
     53    const char* msg,
     54    ...)
     55 #ifdef COMPILER_GCC
     56   __attribute((format(printf, 2, 3)))
     57 #endif
     58 ;
     59 
     60 #endif /* SSCHIFF_DEVICE_H */
     61