subrascasse

Sub Rascasse: an iPhone dive log for Subsurface cloud storage, with a pure-Swift git client (GPL-2.0)
git clone https://git.schurger.org/subrascasse.git
Log | Files | Refs | README | LICENSE

version.h (1603B)


      1 /*
      2  * libdivecomputer
      3  *
      4  * Copyright (C) 2010 Jef Driesen
      5  *
      6  * This library is free software; you can redistribute it and/or
      7  * modify it under the terms of the GNU Lesser General Public
      8  * License as published by the Free Software Foundation; either
      9  * version 2.1 of the License, or (at your option) any later version.
     10  *
     11  * This library is distributed in the hope that it will be useful,
     12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     14  * Lesser General Public License for more details.
     15  *
     16  * You should have received a copy of the GNU Lesser General Public
     17  * License along with this library; if not, write to the Free Software
     18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
     19  * MA 02110-1301 USA
     20  */
     21 
     22 #ifndef DC_VERSION_H
     23 #define DC_VERSION_H
     24 
     25 #ifdef __cplusplus
     26 extern "C" {
     27 #endif /* __cplusplus */
     28 
     29 #define DC_VERSION "0.10.0-devel-Subsurface-NG"
     30 #define DC_VERSION_MAJOR 0
     31 #define DC_VERSION_MINOR 10
     32 #define DC_VERSION_MICRO 0
     33 
     34 #define DC_VERSION_CHECK(major,minor,micro) \
     35 	(DC_VERSION_MAJOR > (major) || \
     36 	(DC_VERSION_MAJOR == (major) && DC_VERSION_MINOR > (minor)) || \
     37 	(DC_VERSION_MAJOR == (major) && DC_VERSION_MINOR == (minor) && \
     38 		DC_VERSION_MICRO >= (micro)))
     39 
     40 typedef struct dc_version_t {
     41 	unsigned int major;
     42 	unsigned int minor;
     43 	unsigned int micro;
     44 } dc_version_t;
     45 
     46 const char *
     47 dc_version (dc_version_t *version);
     48 
     49 int
     50 dc_version_check (unsigned int major, unsigned int minor, unsigned int micro);
     51 
     52 #ifdef __cplusplus
     53 }
     54 #endif /* __cplusplus */
     55 
     56 #endif /* DC_VERSION_H */