+/*The org.project.Bar interface is very complicated.*/
[DBus (name = "org.project.Bar", timeout = 120000)]
public interface OrgProjectBar : GLib.Object {
+ /*Method <emphasis>documentation</emphasis> blablablabla.*/
[Version (since = "0.58")]
public abstract void hello_world (string greeting, out string response) throws GLib.DBusError, GLib.IOError;
public abstract void test_primitive_types (char val_byte, bool val_boolean, int16 val_int16, uint16 val_uint16, int32 val_int32, uint32 val_uint32, int64 val_int64, uint64 val_uint64, double val_double, string val_string, GLib.ObjectPath val_objpath, string val_signature, string val_bytestring, out char ret_byte, out bool ret_boolean, out int16 ret_int16, out uint16 ret_uint16, out int32 ret_int32, out uint32 ret_uint32, out int64 ret_int64, out uint64 ret_uint64, out double ret_double, out string ret_string, out GLib.ObjectPath ret_objpath, out string ret_signature, out string ret_bytestring) throws GLib.DBusError, GLib.IOError;
public abstract void request_multi_property_mods () throws GLib.DBusError, GLib.IOError;
public abstract void unimplemented_method () throws GLib.DBusError, GLib.IOError;
public abstract void property_cancellation () throws GLib.DBusError, GLib.IOError;
+ /*<para>Property docs, yah...</para><para>Second paragraph.</para>*/
[DBus (name = "y")]
public abstract char y { get; set; }
[DBus (name = "b")]
public abstract string[] unset_ag { owned get; set; }
[DBus (name = "unset_struct", signature = "(idsogayasaoag)")]
public abstract GLib.Variant unset_struct { owned get; set; }
+ /*Signal documentation.*/
public signal void test_signal (int32 val_int32, string[] array_of_strings, string[] array_of_bytestrings, [DBus (signature = "a{s(ii)}")] GLib.Variant dict_s_to_pairs);
public signal void another_signal (string word);
}
// This annotation is intended to be used by code generators to implement client-side caching of property values.
// For all properties for which the annotation is set to const, invalidates or true the client may unconditionally
// cache the values as the properties don't change or notifications are generated for them if they do.
- if (val == "false" || val == "const") {
+ if (val != null && (val == "false" || val == "const")) {
// const is technically wrong, but if you can't change the value, notify will never be triggered
current_node.set_attribute_bool ("CCode", "notify", false);
}
case "org.gtk.GDBus.DocString":
// A string with Docbook content for documentation. This annotation can be used on <interface>, <method>, <signal>,
// <property> and <arg> elements.
+ if (val != null) {
+ ((Symbol) current_node).comment = new Vala.Comment (val, get_current_src ());
+ }
+ break;
case "org.gtk.GDBus.DocString.Short":
// A string with Docbook content for short/brief documentation. This annotation can only be used on <interface>
// elements.