Equalizer  1.4.1
eq/client/init.h
00001 
00002 /* Copyright (c) 2005-2011, Stefan Eilemann <eile@equalizergraphics.com> 
00003  *
00004  * This library is free software; you can redistribute it and/or modify it under
00005  * the terms of the GNU Lesser General Public License version 2.1 as published
00006  * by the Free Software Foundation.
00007  *  
00008  * This library is distributed in the hope that it will be useful, but WITHOUT
00009  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00010  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00011  * details.
00012  * 
00013  * You should have received a copy of the GNU Lesser General Public License
00014  * along with this library; if not, write to the Free Software Foundation, Inc.,
00015  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00016  */
00017 
00018 #ifndef EQ_INIT_H
00019 #define EQ_INIT_H
00020 
00021 #include <eq/client/api.h>
00022 #include <eq/client/types.h>
00023 #include <eq/client/version.h>    // used inline
00024 #include <lunchbox/log.h>   // used inline
00025 
00026 namespace eq
00027 {
00029     EQ_API bool _init( const int argc, char** argv, NodeFactory* nodeFactory );
00030     
00057     inline bool init( const int argc, char** argv, NodeFactory* nodeFactory )
00058     {
00059         if( EQ_VERSION_ABI == Version::getABI( ))
00060             return eq::_init( argc, argv, nodeFactory );
00061         LBWARN << "Equalizer shared library v" << Version::getABI()
00062                << " not binary-compatible with application v" << EQ_VERSION_ABI
00063                << std::endl;
00064         return false;
00065     }
00066 
00073     EQ_API bool exit();
00074 
00084     EQ_API Config* getConfig( const int argc, char** argv );
00085 
00092     EQ_API void releaseConfig( Config* config );
00093 }
00094 
00095 #endif // EQ_INIT_H
00096 
Generated on Mon Nov 26 2012 14:41:49 for Equalizer 1.4.1 by  doxygen 1.7.6.1