After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 688838 - Please add expanded support for dbus fd lists
Please add expanded support for dbus fd lists
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: D-Bus
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2012-11-21 21:12 UTC by Michael Terry
Modified: 2018-05-22 14:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Terry 2012-11-21 21:12:22 UTC
Hello!  I see that there is some support for using dbus message fd lists in codegen/valagdbus*.vala.  But it is really limited right now.

It looks like the return type of the dbus method has to be exactly "h".  Some potentially more complicated but interesting types that dbus_method_uses_file_descriptor() will return false for:
"(hs)"
"a(hs)"
"v" that happens to have an "h" stuffed inside

The only way to get support for methods that return these seems to be to write the dbus server code manually, without any of the magic that vala can bring.

I understand that the last example (v with h inside) will be harder to detect automatically.  I'd be happy with just more extensive static analysis of the return type.  But dynamic analysis would also be neat.
Comment 1 GNOME Infrastructure Team 2018-05-22 14:37:01 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/338.