diff --git a/src/plugins/dbus3270/main.c b/src/plugins/dbus3270/main.c index c366d85..73c4889 100644 --- a/src/plugins/dbus3270/main.c +++ b/src/plugins/dbus3270/main.c @@ -100,7 +100,7 @@ else { session_id = id; - trace("DBUS service name is %s",service_name); + g_message("DBUS service name is %s",service_name); org_freedesktop_DBus_request_name(proxy, service_name, DBUS_NAME_FLAG_DO_NOT_QUEUE, &result, &error); } } @@ -133,7 +133,7 @@ pw3270_set_session_name(window,session); g_free(session); - trace("DBUS service path is %s",path); + g_message("DBUS service path is %s",path); pw3270_dbus_register_object(connection,proxy,PW3270_TYPE_DBUS,&dbus_glib_pw3270_dbus_object_info,path); diff --git a/src/plugins/rx3270/remote.cc b/src/plugins/rx3270/remote.cc index a23fd71..7b7eaf9 100644 --- a/src/plugins/rx3270/remote.cc +++ b/src/plugins/rx3270/remote.cc @@ -190,6 +190,8 @@ remote::remote(const char *name) char * str = strdup(name); char * ptr; + trace("%s str=%p",__FUNCTION__,str); + for(ptr=str;*ptr;ptr++) *ptr = tolower(*ptr); @@ -253,6 +255,7 @@ remote::remote(const char *name) dbus_error_init(&err); conn = dbus_bus_get(DBUS_BUS_SESSION, &err); + trace("dbus_bus_get conn=%p",conn); if (dbus_error_is_set(&err)) { @@ -267,6 +270,7 @@ remote::remote(const char *name) } rc = dbus_bus_request_name(conn, "br.com.bb." PACKAGE_NAME ".rexx", DBUS_NAME_FLAG_REPLACE_EXISTING , &err); + trace("dbus_bus_request_name rc=%d",rc); if (dbus_error_is_set(&err)) { diff --git a/src/plugins/rx3270/rx3270.cc b/src/plugins/rx3270/rx3270.cc index 3a495ec..c8104b2 100644 --- a/src/plugins/rx3270/rx3270.cc +++ b/src/plugins/rx3270/rx3270.cc @@ -193,9 +193,17 @@ int rx3270::set_clipboard(const char *text) return EINVAL; } +extern "C" +{ + static void memfree(void *ptr) + { + free(ptr); + } +} + void rx3270::free(void *ptr) { - free(ptr); + memfree(ptr); } int rx3270::popup_dialog(LIB3270_NOTIFY id , const char *title, const char *message, const char *fmt, ...) -- libgit2 0.21.2