[vala/0.10] 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/0.10] D-Bus: Ignore non-abstract methods in interfaces of GDBus clients
- Date: Tue, 26 Oct 2010 18:30:29 +0000 (UTC)
commit c67f0e5fd20d300778b1fa69e28fbac8bdca1b7b
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 06ddcc4..b7be64c 100644
--- a/codegen/valagdbusclientmodule.vala
+++ b/codegen/valagdbusclientmodule.vala
@@ -118,6 +118,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)))));
@@ -129,6 +133,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]