Equalizer  1.11.0
Parallel Rendering Framework
init.h
1 
2 /* Copyright (c) 2005-2014, Stefan Eilemann <eile@equalizergraphics.com>
3  *
4  * This library is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU Lesser General Public License version 2.1 as published
6  * by the Free Software Foundation.
7  *
8  * This library is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11  * details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this library; if not, write to the Free Software Foundation, Inc.,
15  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16  */
17 
18 #ifndef EQ_INIT_H
19 #define EQ_INIT_H
20 
21 #include <eq/api.h>
22 #include <eq/types.h>
23 #include <eq/version.h> // used inline
24 #include <lunchbox/log.h> // used inline
25 
26 namespace eq
27 {
29 EQ_API bool _init( const int argc, char** argv, NodeFactory* nodeFactory );
30 
58 inline bool init( const int argc, char** argv, NodeFactory* nodeFactory )
59 {
61  return eq::_init( argc, argv, nodeFactory );
62  LBWARN << "Equalizer shared library v" << Version::getABI()
63  << " not binary compatible with application v" << EQ_VERSION_ABI
64  << std::endl;
65  return false;
66 }
67 
73 EQ_API bool exit();
74 
84 EQ_API Config* getConfig( const int argc, char** argv );
85 
92 EQ_API void releaseConfig( Config* config );
93 }
94 
95 #endif // EQ_INIT_H
EQ_API void releaseConfig(Config *config)
Convenience function to release a configuration.
EQ_API Config * getConfig(const int argc, char **argv)
Convenience function to retrieve a configuration.
bool init(const int argc, char **argv, NodeFactory *nodeFactory)
Initialize the Equalizer client library.
Definition: init.h:58
The Equalizer client library.
Definition: eq/agl/types.h:23
EQ_API bool exit()
De-initialize the Equalizer client library.
static int getABI()
#define EQ_VERSION_ABI
The current binary interface.
Definition: eq/version.h:29
The node factory is a per-node singleton used to create and release Equalizer resource instances...
Definition: nodeFactory.h:36