1// Code by: Jeremy Moles (cubicool) 2007-2008
2
3#ifndef OSGWIDGET_VERSION
4#define OSGWIDGET_VERSION
5
6#include <osgWidget/Export>
7
8extern "C" {
9
10/**
11 * osgWidgetGetVersion() returns the library version number.
12 * Numbering convention : OpenSceneGraph-1.0 will return 1.0 from osgWidgetGetVersion.
13 *
14 * This C function can be also used to check for the existence of the OpenSceneGraph
15 * library using autoconf and its m4 macro AC_CHECK_LIB.
16 *
17 * Here is the code to add to your configure.in:
18 \verbatim
19 #
20 # Check for the OpenSceneGraph (OSG) Util library
21 #
22 AC_CHECK_LIB(osg, osgWidgetGetVersion, ,
23    [AC_MSG_ERROR(OpenSceneGraph Util library not found. See http://www.openscenegraph.org)],)
24 \endverbatim
25*/
26extern OSGWIDGET_EXPORT const char* osgWidgetGetVersion();
27
28/**
29 * osgWidgetGetLibraryName() returns the library name in human friendly form.
30 */
31extern OSGWIDGET_EXPORT const char* osgWidgetGetLibraryName();
32
33}
34
35#endif
36