axutil_version.h

00001 
00018 #ifndef AXUTIL_VERSION_H
00019 #define AXUTIL_VERSION_H
00020 
00021 /* The numeric compile-time version constants. These constants are the
00022  * authoritative version numbers for AXIS2. 
00023  */
00024 
00030 #define AXIS2_MAJOR_VERSION       1
00031 
00036 #define AXIS2_MINOR_VERSION       0
00037 
00042 #define AXIS2_PATCH_VERSION       0
00043 
00049 #undef AXIS2_IS_DEV_VERSION
00050 
00051 
00052 #if defined(AXIS2_IS_DEV_VERSION) || defined(DOXYGEN)
00053 
00054 #define AXIS2_IS_DEV_STRING "-dev"
00055 #else
00056 #define AXIS2_IS_DEV_STRING ""
00057 #endif
00058 
00060 #define AXIS2_STRINGIFY(n) AXIS2_STRINGIFY_HELPER(n)
00061 
00062 #define AXIS2_STRINGIFY_HELPER(n) #n
00063 
00065 #define AXIS2_VERSION_STRING \
00066      AXIS2_STRINGIFY(AXIS2_MAJOR_VERSION) "." \
00067      AXIS2_STRINGIFY(AXIS2_MINOR_VERSION) "." \
00068      AXIS2_STRINGIFY(AXIS2_PATCH_VERSION) \
00069      AXIS2_IS_DEV_STRING
00070 
00072 /* macro for Win32 .rc files using numeric csv representation */
00073 #define AXIS2_VERSION_STRING_CSV AXIS2_MAJOR_VERSION ##, \
00074                              ##AXIS2_MINOR_VERSION ##, \
00075                              ##AXIS2_PATCH_VERSION
00076 
00077 
00078 #ifndef AXIS2_VERSION_ONLY
00079 
00080 /* The C language API to access the version at run time, 
00081  * as opposed to compile time.  AXIS2_VERSION_ONLY may be defined 
00082  * externally when preprocessing axutil_version.h to obtain strictly 
00083  * the C Preprocessor macro declarations.
00084  */
00085 
00086 #include "axutil_env.h"
00087 
00088 #ifdef __cplusplus
00089 extern "C" {
00090 #endif
00091 
00096 typedef struct {
00097     int major;      
00098     int minor;      
00099     int patch;      
00100     int is_dev;     
00101 } axis2_version_t;
00102 
00109 AXIS2_EXTERN void AXIS2_CALL 
00110 axis2_version(axis2_version_t *pvsn);
00111 
00113 AXIS2_EXTERN const char *AXIS2_CALL 
00114 axis2_version_string(void);
00115 
00116 #ifdef __cplusplus
00117 }
00118 #endif
00119 #endif
00120 
00121 #endif                          /* AXIS2_VERSION_H */
00122 

Generated on Thu May 3 12:31:01 2007 for Axis2/C by  doxygen 1.4.6