[vala] D-Bus: Ignore non-abstract methods in interfaces of GDBus clients
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] D-Bus: Ignore non-abstract methods in interfaces of GDBus clients
- Date: Sat, 23 Oct 2010 19:23:21 +0000 (UTC)
commit 0026a2b70cf31ba235ad73252c75415e277bf35d
Author: Jürg Billeter <j bitron ch>
Date: Fri Oct 22 15:01:42 2010 +0200
D-Bus: Ignore non-abstract methods in interfaces of GDBus clients
codegen/valagdbusclientmodule.vala | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagdbusclientmodule.vala b/codegen/valagdbusclientmodule.vala
index 27cda25..1a6c5bd 100644
--- a/codegen/valagdbusclientmodule.vala
+++ b/codegen/valagdbusclientmodule.vala
@@ -82,6 +82,10 @@ public class Vala.GDBusClientModule : GDBusModule {
var iface_block = new CCodeBlock ();
foreach (Method m in iface.get_methods ()) {
+ if (!m.is_abstract) {
+ continue;
+ }
+
var vfunc_entry = new CCodeMemberAccess.pointer (new CCodeIdentifier ("iface"), m.vfunc_name);
if (!m.coroutine) {
iface_block.add_statement (new CCodeExpressionStatement (new CCodeAssignment (vfunc_entry, new CCodeIdentifier (generate_dbus_proxy_method (main_iface, iface, m)))));
@@ -93,6 +97,10 @@ public class Vala.GDBusClientModule : GDBusModule {
}
foreach (Property prop in iface.get_properties ()) {
+ if (!prop.is_abstract) {
+ continue;
+ }
+
if (prop.get_accessor != null) {
var vfunc_entry = new CCodeMemberAccess.pointer (new CCodeIdentifier ("iface"), "get_" + prop.name);
iface_block.add_statement (new CCodeExpressionStatement (new CCodeAssignment (vfunc_entry, new CCodeIdentifier (generate_dbus_proxy_property_get (main_iface, iface, prop)))));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]