Collage
1.0.1
Object-Oriented C++ Network Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
install
include
co
init.h
1
2
/* Copyright (c) 2005-2013, 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
40
inline
bool
init
(
const
int
argc,
char
** argv )
41
{
42
if
( CO_VERSION_ABI ==
Version::getABI
( ))
43
return
co::_init( argc, argv );
44
LBWARN <<
"Collage shared library v"
<<
Version::getABI
()
45
<<
" not binary compatible with application v"
<< CO_VERSION_ABI
46
<< std::endl;
47
return
false
;
48
}
49
57
CO_API
bool
exit
();
58
}
59
60
#endif // CO_INIT_H
co::Version::getABI
static uint32_t getABI()
co::exit
CO_API bool exit()
De-initialize the Collage network library.
co::init
bool init(const int argc, char **argv)
Initialize the Collage network library.
Definition:
init.h:40
Generated on Thu Dec 5 2013 12:02:22 for Collage by
1.8.5