From 8f5abc8e2160b3f7fa3ffde15af8af88c60dec53 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Fri, 8 May 2020 23:16:14 -0300 Subject: [PATCH] Adding method to get the build timestamp; usefull for version checks. --- src/core/properties/unsigned.c | 4 ++++ src/include/lib3270/properties.h | 8 ++++++++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/core/properties/unsigned.c b/src/core/properties/unsigned.c index cecdede..6798897 100644 --- a/src/core/properties/unsigned.c +++ b/src/core/properties/unsigned.c @@ -178,4 +178,8 @@ static unsigned int lib3270_get_host_type_number(const H3270 *hSession) return properties; } + LIB3270_EXPORT const char * lib3270_get_build_rpq_timestamp(void) + { + return build_rpq_timestamp; + } diff --git a/src/include/lib3270/properties.h b/src/include/lib3270/properties.h index 8c8a047..c1c8197 100644 --- a/src/include/lib3270/properties.h +++ b/src/include/lib3270/properties.h @@ -220,6 +220,14 @@ */ LIB3270_EXPORT void lib3270_disable_crl_download(H3270 *hSession); + /** + * @brief Get lib3270 build timestamp. + * + * @return String with lib3270 build timestamp. + */ + LIB3270_EXPORT const char * lib3270_get_build_rpq_timestamp(void); + + #ifdef __cplusplus } #endif -- libgit2 0.21.2