]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Add missing "has_typedef" attribute for some delegates
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 9 Aug 2020 14:43:28 +0000 (16:43 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 9 Aug 2020 14:58:54 +0000 (16:58 +0200)
vapi/posix.vapi

index e6f0cf6bef969ffb583bbfe546621b7d76fc5b8a..c2cab846510441da731c7260c12096a16f42ca38 100644 (file)
@@ -1648,7 +1648,7 @@ namespace Posix {
        [CCode (cheader_filename = "stdlib.h")]
        public void _exit (int status);
 
-       [CCode (has_target = false)]
+       [CCode (has_target = false, has_typedef = false)]
        public delegate void AtExitFunc ();
 
        [CCode (cheader_filename = "stdlib.h")]
@@ -3397,8 +3397,8 @@ namespace Posix {
                }
        }
 
-       [CCode (has_target = false)]
-       public delegate int GlobErrorFunction (string filename, int errcode);
+       [CCode (has_target = false, has_typedef = false)]
+       public delegate int GlobErrorFunc (string filename, int errcode);
 
        [CCode (cheader_filename = "glob.h")]
        public const int GLOB_ERR;
@@ -3448,7 +3448,7 @@ namespace Posix {
                public size_t offs;
 
                [CCode (cname = "glob", instance_pos = -1)]
-               public int glob (string pattern, int flags = 0, GlobErrorFunction? errfunc = null);
+               public int glob (string pattern, int flags = 0, GlobErrorFunc? errfunc = null);
        }
 
        [CCode (cheader_filename = "langinfo.h", cname = "nl_item", cprefix = "", has_type_id = false)]