summaryrefslogtreecommitdiff
path: root/codegen/valaccodestructmodule.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-11-21 10:25:32 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2018-11-21 11:03:54 +0100
commit257297a1b33f2df4ec2641545675b7f92ece93f8 (patch)
tree412d1f8215ef7e7a342b4965cda9598786404d09 /codegen/valaccodestructmodule.vala
parentc9604b47adf545c431be866d833bb7167a3b6f1e (diff)
downloadvala-257297a1b33f2df4ec2641545675b7f92ece93f8.tar.gz
codegen: Add profile specific delegate target/destroy types
Make sure to use them in all delegate related contexts. This improves the support of POSIX profile.
Diffstat (limited to 'codegen/valaccodestructmodule.vala')
-rw-r--r--codegen/valaccodestructmodule.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/codegen/valaccodestructmodule.vala b/codegen/valaccodestructmodule.vala
index 4460cba11..cfa9ef906 100644
--- a/codegen/valaccodestructmodule.vala
+++ b/codegen/valaccodestructmodule.vala
@@ -99,9 +99,9 @@ public abstract class Vala.CCodeStructModule : CCodeBaseModule {
var delegate_type = (DelegateType) f.variable_type;
if (delegate_type.delegate_symbol.has_target) {
// create field to store delegate target
- instance_struct.add_field ("gpointer", get_ccode_delegate_target_name (f));
+ instance_struct.add_field (get_ccode_name (delegate_target_type), get_ccode_delegate_target_name (f));
if (delegate_type.is_disposable ()) {
- instance_struct.add_field ("GDestroyNotify", get_delegate_target_destroy_notify_cname (get_ccode_name (f)));
+ instance_struct.add_field (get_ccode_name (delegate_target_destroy_type), get_delegate_target_destroy_notify_cname (get_ccode_name (f)));
}
}
}