1 |
/* PEAK Library |
2 |
* |
3 |
* Copyright (c) 2003 |
4 |
* Stephane Thiell <mbuna@bugged.org>. All rights reserved. |
5 |
* |
6 |
* Redistribution and use in source and binary forms, with or without |
7 |
* modification, are permitted provided that the following conditions |
8 |
* are met: |
9 |
* |
10 |
* 1. Redistributions of source code must retain the above copyright |
11 |
* notice, this list of conditions and the following disclaimer. |
12 |
* |
13 |
* 2. Redistributions in binary form must reproduce the above copyright |
14 |
* notice, this list of conditions and the following disclaimer in the |
15 |
* documentation and/or other materials provided with the distribution. |
16 |
* |
17 |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
18 |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
19 |
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
20 |
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
21 |
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
22 |
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
23 |
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
24 |
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
25 |
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
26 |
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
27 |
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 |
* |
29 |
* $Id: version.h,v 1.1.1.1 2003/12/30 02:29:39 mbuna Exp $ |
30 |
*/ |
31 |
#ifndef INCLUDED_PEAK_VERSION_H_ |
32 |
#define INCLUDED_PEAK_VERSION_H_ |
33 |
|
34 |
/*! |
35 |
* @defgroup version Version |
36 |
* |
37 |
* Stuffs to access peak's info and version in your application. |
38 |
*/ |
39 |
|
40 |
/*! |
41 |
* @ingroup version |
42 |
* MNNFFPPS: major minor fix patch status |
43 |
*/ |
44 |
#define PEAK_VERSION_NUMBER 0x0010000fL |
45 |
#define PEAK_VERSION_DYLIB "0.1.0" |
46 |
#define PEAK_VERSION_DYLIB_COMPAT "" |
47 |
|
48 |
|
49 |
#if defined(__cplusplus) |
50 |
extern "C" { |
51 |
#endif |
52 |
|
53 |
/*! |
54 |
* @ingroup version |
55 |
* @brief Get peak's version number. |
56 |
* |
57 |
* Useful for even more precise compatibility check. |
58 |
* |
59 |
* @result A number identifying libpeak's version. |
60 |
*/ |
61 |
extern long peak_version_get_number(); |
62 |
|
63 |
|
64 |
/*! |
65 |
* @ingroup version |
66 |
* @brief Get peak's version as a string. |
67 |
* |
68 |
* @result A pointer to a string of the version of peak. You don't have to free |
69 |
* it as it's still owned by the library. |
70 |
*/ |
71 |
extern const char* peak_version_get_string(); |
72 |
|
73 |
|
74 |
#if defined(__cplusplus) |
75 |
} |
76 |
#endif |
77 |
|
78 |
#endif /* INCLUDED_PEAK_VERSION_H_ */ |