Commit d5fa30f06cae030d93ceaa9d6cdd143d408940b7
Exists in
master
and in
2 other branches
Merge branch 'master' into develop
Showing
2 changed files
with
12 additions
and
0 deletions
Show diff stats
src/core/util.c
... | ... | @@ -237,6 +237,10 @@ LIB3270_EXPORT const char * lib3270_get_revision(void) { |
237 | 237 | return RPQ_REVISION; |
238 | 238 | } |
239 | 239 | |
240 | +LIB3270_EXPORT const char * lib3270_get_product_name(void) { | |
241 | + return LIB3270_STRINGIZE_VALUE_OF(PRODUCT_NAME); | |
242 | +} | |
243 | + | |
240 | 244 | LIB3270_EXPORT char * lib3270_get_version_info(void) { |
241 | 245 | #if defined(HAVE_LIBSSL) |
242 | 246 | return lib3270_strdup_printf( | ... | ... |
src/include/lib3270/properties.h
... | ... | @@ -253,6 +253,14 @@ LIB3270_EXPORT const LIB3270_UINT_PROPERTY * lib3270_unsigned_property_get_by_na |
253 | 253 | LIB3270_EXPORT char * lib3270_get_version_info(void); |
254 | 254 | |
255 | 255 | /** |
256 | + * @brief Get lib3270 product name. | |
257 | + * | |
258 | + * @return Internal string with the product name. | |
259 | + * | |
260 | + */ | |
261 | +LIB3270_EXPORT const char * lib3270_get_product_name(void); | |
262 | + | |
263 | +/** | |
256 | 264 | * @brief Get hostname for the connect/reconnect operations. |
257 | 265 | * |
258 | 266 | * @param h Session handle. | ... | ... |