[Vala] DBus bindings questions
- From: Alexey Morozov <morozov_ml ngs ru>
- To: vala-list gnome org
- Subject: [Vala] DBus bindings questions
- Date: Sat, 12 Dec 2009 22:25:54 +0000 (UTC)
Hello!
I've just started to play with Vala and its DBus bindings, created a sample
service and found that service methods names are mangled when exported to DBus.
For example a method named in Vala sources as get_fan_speed(....) becomes
GetFanSpeed(....), set_feature(....) becomes SetFeature(....) and so on.
Since I'm re-implementing an existing service I would like to preserve existing
service methods signatures. Is it possible to do this w/ current Vala DBus
bindings?
I also would like to point on a minor documentation deficiency. Arguments and
return values of DBus-exported methods in Vala should have DBus-compatible
types. Vala DBus bindings don't perform any implicit type conversions (e.g.
ushort <-> uint16 or float <-> double). It seems this info is missing in the
corresponding tutorial, and violation of this rule leads to obscure DBus service
failures.
Thank you in advance,
Alexey Morozov
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]