Commit c3d86fdcf7659455834a4f37bc524205119b6a61
1 parent
09d28ae8
Exists in
master
and in
5 other branches
Incluindo método para obtenção do nome da LU pelo terminal.
Showing
2 changed files
with
8 additions
and
0 deletions
Show diff stats
src/pw3270/include/v3270.h
@@ -243,6 +243,7 @@ | @@ -243,6 +243,7 @@ | ||
243 | LIB3270_EXPORT int v3270_set_host_type(GtkWidget *widget, const char *name); | 243 | LIB3270_EXPORT int v3270_set_host_type(GtkWidget *widget, const char *name); |
244 | LIB3270_EXPORT const gchar * v3270_set_url(GtkWidget *widget, const gchar *uri); | 244 | LIB3270_EXPORT const gchar * v3270_set_url(GtkWidget *widget, const gchar *uri); |
245 | LIB3270_EXPORT const gchar * v3270_get_hostname(GtkWidget *widget); | 245 | LIB3270_EXPORT const gchar * v3270_get_hostname(GtkWidget *widget); |
246 | + LIB3270_EXPORT const char * v3270_get_luname(GtkWidget *widget); | ||
246 | LIB3270_EXPORT GtkWidget * v3270_get_default_widget(void); | 247 | LIB3270_EXPORT GtkWidget * v3270_get_default_widget(void); |
247 | 248 | ||
248 | // Keyboard & Mouse special actions | 249 | // Keyboard & Mouse special actions |
@@ -255,6 +256,7 @@ | @@ -255,6 +256,7 @@ | ||
255 | LIB3270_EXPORT const gchar * v3270_get_ssl_status_message(GtkWidget *widget); | 256 | LIB3270_EXPORT const gchar * v3270_get_ssl_status_message(GtkWidget *widget); |
256 | LIB3270_EXPORT void v3270_popup_security_dialog(GtkWidget *widget); | 257 | LIB3270_EXPORT void v3270_popup_security_dialog(GtkWidget *widget); |
257 | 258 | ||
259 | + | ||
258 | // File transfer | 260 | // File transfer |
259 | 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); | 261 | 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); |
260 | 262 |
src/pw3270/v3270/widget.c
@@ -1620,6 +1620,12 @@ const gchar * v3270_get_hostname(GtkWidget *widget) | @@ -1620,6 +1620,12 @@ const gchar * v3270_get_hostname(GtkWidget *widget) | ||
1620 | return lib3270_get_hostname(GTK_V3270(widget)->host); | 1620 | return lib3270_get_hostname(GTK_V3270(widget)->host); |
1621 | } | 1621 | } |
1622 | 1622 | ||
1623 | +const gchar * v3270_get_luname(GtkWidget *widget) | ||
1624 | +{ | ||
1625 | + g_return_val_if_fail(GTK_IS_V3270(widget),""); | ||
1626 | + return lib3270_get_luname(GTK_V3270(widget)->host); | ||
1627 | +} | ||
1628 | + | ||
1623 | const gchar * v3270_get_session_name(GtkWidget *widget) | 1629 | const gchar * v3270_get_session_name(GtkWidget *widget) |
1624 | { | 1630 | { |
1625 | if(!GTK_IS_V3270(widget) || GTK_V3270(widget)->session_name == NULL) | 1631 | if(!GTK_IS_V3270(widget) || GTK_V3270(widget)->session_name == NULL) |