Commit ebb4abf96520a70a3ae1817971480e3ec3f6b154
1 parent
4d87d9fa
Exists in
master
Incluindo método D-Bus para ajustar timeouts
Showing
3 changed files
with
16 additions
and
2 deletions
Show diff stats
src/gobject.c
... | ... | @@ -335,7 +335,7 @@ void pw3270_dbus_set_timeout(PW3270Dbus *object, const gchar *id, int timeout, D |
335 | 335 | dbus_g_method_return(context,0); |
336 | 336 | } |
337 | 337 | |
338 | -void pw3270_dbus_set_autoclose(PW3270Dbus *object, const gchar *id, int timeout, DBusGMethodInvocation *context) { | |
338 | +void pw3270_dbus_set_auto_close(PW3270Dbus *object, const gchar *id, int timeout, DBusGMethodInvocation *context) { | |
339 | 339 | |
340 | 340 | struct session * ses = session_find(id); |
341 | 341 | ... | ... |
src/pw3270service.xml
... | ... | @@ -127,6 +127,20 @@ |
127 | 127 | <arg type="i" name="length" direction="out" /> |
128 | 128 | </method> |
129 | 129 | |
130 | + <method name="setAutoClose"> | |
131 | + <annotation name="org.freedesktop.DBus.GLib.Async" value="true"/> | |
132 | + <arg type="s" name="id" direction="in" /> | |
133 | + <arg type="i" name="timer" direction="in" /> | |
134 | + <arg type="i" name="rc" direction="out" /> | |
135 | + </method> | |
136 | + | |
137 | + <method name="setTimeout"> | |
138 | + <annotation name="org.freedesktop.DBus.GLib.Async" value="true"/> | |
139 | + <arg type="s" name="id" direction="in" /> | |
140 | + <arg type="i" name="timer" direction="in" /> | |
141 | + <arg type="i" name="rc" direction="out" /> | |
142 | + </method> | |
143 | + | |
130 | 144 | </interface> |
131 | 145 | |
132 | 146 | </node> | ... | ... |
src/service.h
... | ... | @@ -84,7 +84,7 @@ |
84 | 84 | void pw3270_dbus_get_screen_length(PW3270Dbus *object, const gchar *id, DBusGMethodInvocation *context); |
85 | 85 | |
86 | 86 | void pw3270_dbus_set_timeout(PW3270Dbus *object, const gchar *id, int timeout, DBusGMethodInvocation *context); |
87 | - void pw3270_dbus_set_autoclose(PW3270Dbus *object, const gchar *id, int timeout, DBusGMethodInvocation *context); | |
87 | + void pw3270_dbus_set_auto_close(PW3270Dbus *object, const gchar *id, int timeout, DBusGMethodInvocation *context); | |
88 | 88 | |
89 | 89 | /* |
90 | 90 | void pw3270_dbus_quit(PW3270Dbus *object, DBusGMethodInvocation *context); | ... | ... |