Equalizer  1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
client/init.h
1 
2 /* Copyright (c) 2005-2011, 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/client/api.h>
22 #include <eq/client/types.h>
23 #include <eq/client/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 
57  inline bool init( const int argc, char** argv, NodeFactory* nodeFactory )
58  {
59  if( EQ_VERSION_ABI == Version::getABI( ))
60  return eq::_init( argc, argv, nodeFactory );
61  LBWARN << "Equalizer shared library v" << Version::getABI()
62  << " not binary compatible with application v" << EQ_VERSION_ABI
63  << std::endl;
64  return false;
65  }
66 
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
96 
EQ_API void releaseConfig(Config *config)
Convenience function to release a configuration.
static uint32_t getABI()
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: client/init.h:57
EQ_API bool exit()
De-initialize the Equalizer client library.
The node factory is a per-node singleton used to create and release Equalizer resource instances...
Definition: nodeFactory.h:36