Commit 0300accac7853b006e877c608118d7fcc4bae8ca
1 parent
8d36d384
Exists in
master
and in
5 other branches
Incluindo os métodos erase_eof e print na interface dbus
Showing
3 changed files
with
21 additions
and
0 deletions
Show diff stats
src/plugins/dbus3270/gobject.c
| ... | ... | @@ -468,3 +468,14 @@ void pw3270_dbus_set_host_charset(PW3270Dbus *object, const gchar *charset, DBus |
| 468 | 468 | { |
| 469 | 469 | dbus_g_method_return(context,lib3270_set_host_charset(pw3270_dbus_get_session_handle(object),charset)); |
| 470 | 470 | } |
| 471 | + | |
| 472 | +void pw3270_dbus_erase_eof(PW3270Dbus *object, DBusGMethodInvocation *context) | |
| 473 | +{ | |
| 474 | + trace("%s object=%p context=%p",__FUNCTION__,object,context); | |
| 475 | + dbus_g_method_return(context,lib3270_eraseeof(pw3270_dbus_get_session_handle(object))); | |
| 476 | +} | |
| 477 | + | |
| 478 | +void pw3270_dbus_print(PW3270Dbus *object, DBusGMethodInvocation *context) | |
| 479 | +{ | |
| 480 | + dbus_g_method_return(context,lib3270_print(pw3270_dbus_get_session_handle(object))); | |
| 481 | +} | ... | ... |
src/plugins/dbus3270/pw3270dbus.xml
| ... | ... | @@ -162,6 +162,14 @@ |
| 162 | 162 | <arg type="s" name="charset" direction="in" /> |
| 163 | 163 | <arg type="i" name="result" direction="out" /> |
| 164 | 164 | </method> |
| 165 | + <method name="eraseEof"> | |
| 166 | + <annotation name="org.freedesktop.DBus.GLib.Async" value="true"/> | |
| 167 | + <arg type="i" name="result" direction="out" /> | |
| 168 | + </method> | |
| 169 | + <method name="print"> | |
| 170 | + <annotation name="org.freedesktop.DBus.GLib.Async" value="true"/> | |
| 171 | + <arg type="i" name="result" direction="out" /> | |
| 172 | + </method> | |
| 165 | 173 | |
| 166 | 174 | </interface> |
| 167 | 175 | ... | ... |
src/plugins/dbus3270/service.h
| ... | ... | @@ -109,6 +109,8 @@ |
| 109 | 109 | void pw3270_dbus_get_display_charset(PW3270Dbus *object, DBusGMethodInvocation *context); |
| 110 | 110 | void pw3270_dbus_get_host_charset(PW3270Dbus *object, DBusGMethodInvocation *context); |
| 111 | 111 | void pw3270_dbus_set_host_charset(PW3270Dbus *object, const gchar *charset, DBusGMethodInvocation *context); |
| 112 | + void pw3270_dbus_erase_eof(PW3270Dbus *object, DBusGMethodInvocation *context); | |
| 113 | + void pw3270_dbus_print(PW3270Dbus *object, DBusGMethodInvocation *context); | |
| 112 | 114 | |
| 113 | 115 | G_END_DECLS |
| 114 | 116 | ... | ... |