Commit 9a0f6193a885f8e8f851499c06f7f5a2eede0d8d

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

Updating HLLAPI methods.

src/ipc3270c/linux/gobject.c
@@ -145,7 +145,7 @@ void pw3270_dbus_get_connection_state(PW3270Dbus *object, DBusGMethodInvocation @@ -145,7 +145,7 @@ void pw3270_dbus_get_connection_state(PW3270Dbus *object, DBusGMethodInvocation
145 void pw3270_dbus_get_secure_state(PW3270Dbus *object, DBusGMethodInvocation *context) 145 void pw3270_dbus_get_secure_state(PW3270Dbus *object, DBusGMethodInvocation *context)
146 { 146 {
147 trace("%s object=%p context=%p",__FUNCTION__,object,context); 147 trace("%s object=%p context=%p",__FUNCTION__,object,context);
148 - dbus_g_method_return(context,lib3270_get_secure(pw3270_dbus_get_session_handle(object))); 148 + dbus_g_method_return(context,lib3270_get_ssl_state(pw3270_dbus_get_session_handle(object)));
149 } 149 }
150 150
151 GError * pw3270_dbus_get_error_from_errno(int code) 151 GError * pw3270_dbus_get_error_from_errno(int code)
@@ -256,7 +256,7 @@ void pw3270_dbus_set_text_at(PW3270Dbus *object, int row, int col, const gchar * @@ -256,7 +256,7 @@ void pw3270_dbus_set_text_at(PW3270Dbus *object, int row, int col, const gchar *
256 256
257 text = g_convert_with_fallback(utftext,-1,lib3270_get_display_charset(hSession),"UTF-8","?",NULL,NULL,NULL); 257 text = g_convert_with_fallback(utftext,-1,lib3270_get_display_charset(hSession),"UTF-8","?",NULL,NULL,NULL);
258 258
259 - int sz = lib3270_set_string_at(hSession,row,col,(const unsigned char *) text); 259 + int sz = lib3270_set_string_at(hSession,row,col,(const unsigned char *) text, -1);
260 260
261 trace("%s returns %d",__FUNCTION__,sz); 261 trace("%s returns %d",__FUNCTION__,sz);
262 dbus_g_method_return(context,sz); 262 dbus_g_method_return(context,sz);
src/ipc3270c/windows/main.c
@@ -355,7 +355,7 @@ @@ -355,7 +355,7 @@
355 break; 355 break;
356 356
357 case HLLAPI_PACKET_GET_SSL_STATE: 357 case HLLAPI_PACKET_GET_SSL_STATE:
358 - send_result(source,lib3270_get_secure(lib3270_get_default_session_handle())); 358 + send_result(source,lib3270_get_ssl_state(lib3270_get_default_session_handle()));
359 break; 359 break;
360 360
361 case HLLAPI_PACKET_SET_UNLOCK_DELAY: 361 case HLLAPI_PACKET_SET_UNLOCK_DELAY: