summaryrefslogtreecommitdiff
path: root/vala/valausedattr.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-04-10 18:16:37 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2018-04-14 10:26:06 +0200
commite9214a7c1a433f679de43861946d24e98af80d82 (patch)
tree92ae21a26f21eb8b8c27f65fcd23f8c96a92e29d /vala/valausedattr.vala
parent8b01601c777c9b3adf382c6cbd63c239d05b6c84 (diff)
downloadvala-e9214a7c1a433f679de43861946d24e98af80d82.tar.gz
vala: Support anonymous definitions of delegates in bindings
If a library header does not include a defintion for a delegate then bindings can use the CCode annotation "has_typedef = false" which will force creation of typedef in generated source-file. [CCode (has_typedef = false)] public delegate void Func (); https://bugzilla.gnome.org/show_bug.cgi?id=794920
Diffstat (limited to 'vala/valausedattr.vala')
-rw-r--r--vala/valausedattr.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valausedattr.vala b/vala/valausedattr.vala
index 4947b33a9..999cfc867 100644
--- a/vala/valausedattr.vala
+++ b/vala/valausedattr.vala
@@ -33,7 +33,7 @@ public class Vala.UsedAttr : CodeVisitor {
"CCode", "type_signature", "default_value", "set_value_function", "type_id", "cprefix", "cheader_filename",
"marshaller_type_name", "get_value_function", "cname", "destroy_function", "lvalue_access",
"has_type_id", "instance_pos", "const_cname", "take_value_function", "copy_function", "free_function",
- "param_spec_function", "has_target", "type_cname", "ref_function", "ref_function_void", "unref_function", "type",
+ "param_spec_function", "has_target", "has_typedef", "type_cname", "ref_function", "ref_function_void", "unref_function", "type",
"has_construct_function", "returns_floating_reference", "gir_namespace", "gir_version", "construct_function",
"lower_case_cprefix", "simple_generics", "sentinel", "scope", "has_destroy_function", "ordering", "type_check_function",
"has_copy_function", "lower_case_csuffix", "ref_sink_function", "dup_function", "finish_function", "generic_type_pos",