Commit 0f99edbc83f12c840ef2d764ddbd0337537c34d9

Authored by Perry Werneck
1 parent ed74738b
Exists in master and in 1 other branch develop

Using product name for testing.

client/src/testprogram/testprogram.cc
@@ -28,7 +28,7 @@ @@ -28,7 +28,7 @@
28 */ 28 */
29 29
30 /** 30 /**
31 - * @file src/lib3270++/testprogram/testprogram.cc 31 + * @file client/src/testprogram/testprogram.cc
32 * 32 *
33 * @brief 33 * @brief
34 * 34 *
@@ -36,6 +36,7 @@ @@ -36,6 +36,7 @@
36 * 36 *
37 */ 37 */
38 38
  39 + #include <config.h>
39 #include <getopt.h> 40 #include <getopt.h>
40 #include <cstdlib> 41 #include <cstdlib>
41 #include <lib3270/ipc.h> 42 #include <lib3270/ipc.h>
@@ -137,7 +138,7 @@ @@ -137,7 +138,7 @@
137 138
138 int main(int argc, char **argv) { 139 int main(int argc, char **argv) {
139 140
140 - const char * session = "pw3270:a"; 141 + const char * session = LIB3270_STRINGIZE_VALUE_OF(PRODUCT_NAME) ":a";
141 142
142 #pragma GCC diagnostic push 143 #pragma GCC diagnostic push
143 #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" 144 #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
common/src/include/config.h.in
@@ -34,6 +34,7 @@ @@ -34,6 +34,7 @@
34 #undef PACKAGE_NAME 34 #undef PACKAGE_NAME
35 #undef PACKAGE_VERSION 35 #undef PACKAGE_VERSION
36 #undef PACKAGE_RELEASE 36 #undef PACKAGE_RELEASE
  37 + #undef PRODUCT_NAME
37 38
38 #undef HAVE_ICONV 39 #undef HAVE_ICONV
39 #undef ICONV_CONST 40 #undef ICONV_CONST
server/src/testprogram/testprogram.c
@@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@
50 #else 50 #else
51 const gchar * plugin_path = G_STRINGIFY(PLUGIN_PATH); 51 const gchar * plugin_path = G_STRINGIFY(PLUGIN_PATH);
52 #endif // _WIN32 52 #endif // _WIN32
53 - const gchar * session_name = "pw3270"; 53 + const gchar * session_name = G_STRINGIFY(PRODUCT_NAME);
54 const gchar * plugin_name = "ipcserver." G_MODULE_SUFFIX; 54 const gchar * plugin_name = "ipcserver." G_MODULE_SUFFIX;
55 55
56 /*---[ Implement ]----------------------------------------------------------------------------------*/ 56 /*---[ Implement ]----------------------------------------------------------------------------------*/