]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libgsf-1: Fix metadata warnings and Outfile.new_child*()
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 22 Mar 2018 17:03:14 +0000 (18:03 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 22 Mar 2018 17:05:26 +0000 (18:05 +0100)
vapi/Makefile.am
vapi/libgsf-1.vapi
vapi/metadata/Gsf-1-custom.vala [new file with mode: 0644]
vapi/metadata/Gsf-1.metadata

index 61f9213fecf4507b5d656f4315455d6e78123906..5e8a208b847a42e194f094e65095ab529d30af7f 100644 (file)
@@ -631,7 +631,7 @@ libgrss:
        $(GENVAPI) --library $(srcdir)/libgrss --metadatadir $(METADATADIR) --pkg gio-2.0 --pkg libsoup-2.4 --pkg libxml-2.0 $(GIRDIR)/Grss-0.7.gir
 
 libgsf-1:
-       $(GENVAPI) --library $(srcdir)/libgsf-1 --pkg gio-2.0 --pkg libxml-2.0 --metadatadir $(METADATADIR) $(GIRDIR)/Gsf-1.gir
+       $(GENVAPI) --library $(srcdir)/libgsf-1 --pkg gio-2.0 --pkg libxml-2.0 --metadatadir $(METADATADIR) $(METADATADIR)/Gsf-1-custom.vala $(GIRDIR)/Gsf-1.gir
 
 libnotify:
        $(GENVAPI) --library $(srcdir)/libnotify --pkg gdk-pixbuf-2.0 --pkg gio-2.0 --metadatadir $(METADATADIR) $(GIRDIR)/Notify-0.7.gir
index 58beb041aafcc55ccb3083bac34d886d9b20543b..2480d0dc6c5b2940b90619df2b0597612af36439 100644 (file)
@@ -249,10 +249,10 @@ namespace Gsf {
        public abstract class Outfile : Gsf.Output {
                [CCode (has_construct_function = false)]
                protected Outfile ();
-               [NoWrapper]
-               public virtual unowned Gsf.Output new_child (string name, bool is_dir, string first_property_name, va_list args);
+               public Gsf.Output new_child (string name, bool is_dir);
                public Gsf.Output new_child_full (string name, bool is_dir, ...);
-               public Gsf.Output new_child_varg (string name, bool is_dir, string first_property_name, va_list args);
+               [CCode (vfunc_name = "new_child")]
+               public virtual Gsf.Output new_child_varg (string name, bool is_dir, string first_property_name, va_list args);
                public Gsf.Output open_pkg_add_rel (string name, string content_type, Gsf.Outfile parent, string type);
        }
        [CCode (cheader_filename = "gsf/gsf.h", lower_case_csuffix = "outfile_msole", type_id = "gsf_outfile_msole_get_type ()")]
diff --git a/vapi/metadata/Gsf-1-custom.vala b/vapi/metadata/Gsf-1-custom.vala
new file mode 100644 (file)
index 0000000..52bde05
--- /dev/null
@@ -0,0 +1,5 @@
+namespace Gsf {
+       public abstract class Outfile : Gsf.Output {
+               public Gsf.Output new_child (string name, bool is_dir);
+       }
+}
index 99caeaaae1dadd0e98435ff4e5f1a0ae3e1513cd..640b6c75e4c923ff72d3d3472c54d85920d27f09 100644 (file)
@@ -46,8 +46,8 @@ InputTextline
 
 Outfile
   .* skip=false
-//  .new_child#virtual name="new_child_varg"
-//  .new_child_varg vfunc_name="new_child"
+  .new_child skip
+  .new_child_varg vfunc_name="new_child"
 
 Output
   .* skip=false
@@ -79,14 +79,14 @@ XMLInNode struct=false
 
 XMLInUnknownFunc
   .elem type="string"
-  .attrs array type="string[]"
+  .attrs type="string[]"
 
 XMLProbeFunc
   .name type="string"
   .prefix type="string"
   .URI type="string"
-  .namespaces array array_length_idx=3 type="string[]"
-  .attributes array array_length_idx=5 type="string[]"
+  .namespaces array_length_idx=3 type="string[]"
+  .attributes array_length_idx=5 type="string[]"
 
 base64_*code_*.data array
 base64_*code_*.in array