Commit 8f5abc8e2160b3f7fa3ffde15af8af88c60dec53
1 parent
5cf1b6b5
Exists in
master
and in
3 other branches
Adding method to get the build timestamp; usefull for version checks.
Showing
2 changed files
with
12 additions
and
0 deletions
Show diff stats
src/core/properties/unsigned.c
| @@ -178,4 +178,8 @@ static unsigned int lib3270_get_host_type_number(const H3270 *hSession) | @@ -178,4 +178,8 @@ static unsigned int lib3270_get_host_type_number(const H3270 *hSession) | ||
| 178 | return properties; | 178 | return properties; |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | + LIB3270_EXPORT const char * lib3270_get_build_rpq_timestamp(void) | ||
| 182 | + { | ||
| 183 | + return build_rpq_timestamp; | ||
| 184 | + } | ||
| 181 | 185 |
src/include/lib3270/properties.h
| @@ -220,6 +220,14 @@ | @@ -220,6 +220,14 @@ | ||
| 220 | */ | 220 | */ |
| 221 | LIB3270_EXPORT void lib3270_disable_crl_download(H3270 *hSession); | 221 | LIB3270_EXPORT void lib3270_disable_crl_download(H3270 *hSession); |
| 222 | 222 | ||
| 223 | + /** | ||
| 224 | + * @brief Get lib3270 build timestamp. | ||
| 225 | + * | ||
| 226 | + * @return String with lib3270 build timestamp. | ||
| 227 | + */ | ||
| 228 | + LIB3270_EXPORT const char * lib3270_get_build_rpq_timestamp(void); | ||
| 229 | + | ||
| 230 | + | ||
| 223 | #ifdef __cplusplus | 231 | #ifdef __cplusplus |
| 224 | } | 232 | } |
| 225 | #endif | 233 | #endif |