Collage  1.7.0
High-performance C++ library for developing object-oriented distributed applications.
init.h
1 
2 /* Copyright (c) 2005-2014, Stefan Eilemann <eile@equalizergraphics.com>
3  *
4  * This file is part of Collage <https://github.com/Eyescale/Collage>
5  *
6  * This library is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License version 2.1 as published
8  * by the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13  * details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this library; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef CO_INIT_H
21 #define CO_INIT_H
22 
23 #include <co/api.h>
24 #include <co/version.h> // used inline
25 #include <lunchbox/log.h> // used inline
26 
27 namespace co
28 {
30 CO_API bool _init(const int argc, char** argv);
31 
42 inline bool init(const int argc, char** argv)
43 {
45  return co::_init(argc, argv);
46  LBWARN << "Collage shared library v" << Version::getABI()
47  << " not binary compatible with application v" << CO_VERSION_ABI
48  << std::endl;
49  return false;
50 }
51 
59 CO_API bool exit();
60 }
61 
62 #endif // CO_INIT_H
Defines export visibility macros for library Collage.
#define CO_VERSION_ABI
The current binary interface.
Definition: version.h:29
Object-oriented network library.
Definition: barrier.h:27
CO_API bool exit()
De-initialize the Collage network library.
Defines version macros and class for library Collage.
static int getABI()
bool init(const int argc, char **argv)
Initialize the Collage network library.
Definition: init.h:42