diff --git a/src/pw3270/include/v3270.h b/src/pw3270/include/v3270.h index 7149e50..02fc113 100644 --- a/src/pw3270/include/v3270.h +++ b/src/pw3270/include/v3270.h @@ -243,6 +243,7 @@ LIB3270_EXPORT int v3270_set_host_type(GtkWidget *widget, const char *name); LIB3270_EXPORT const gchar * v3270_set_url(GtkWidget *widget, const gchar *uri); LIB3270_EXPORT const gchar * v3270_get_hostname(GtkWidget *widget); + LIB3270_EXPORT const char * v3270_get_luname(GtkWidget *widget); LIB3270_EXPORT GtkWidget * v3270_get_default_widget(void); // Keyboard & Mouse special actions @@ -255,6 +256,7 @@ LIB3270_EXPORT const gchar * v3270_get_ssl_status_message(GtkWidget *widget); LIB3270_EXPORT void v3270_popup_security_dialog(GtkWidget *widget); + // File transfer LIB3270_EXPORT gint v3270_transfer_file(GtkWidget *widget, LIB3270_FT_OPTION options, const gchar *local, const gchar *remote, int lrecl, int blksize, int primspace, int secspace, int dft); diff --git a/src/pw3270/v3270/widget.c b/src/pw3270/v3270/widget.c index a57c158..8e96084 100644 --- a/src/pw3270/v3270/widget.c +++ b/src/pw3270/v3270/widget.c @@ -1620,6 +1620,12 @@ const gchar * v3270_get_hostname(GtkWidget *widget) return lib3270_get_hostname(GTK_V3270(widget)->host); } +const gchar * v3270_get_luname(GtkWidget *widget) +{ + g_return_val_if_fail(GTK_IS_V3270(widget),""); + return lib3270_get_luname(GTK_V3270(widget)->host); +} + const gchar * v3270_get_session_name(GtkWidget *widget) { if(!GTK_IS_V3270(widget) || GTK_V3270(widget)->session_name == NULL) -- libgit2 0.21.2