add scanf and fscanf bindings
authorJuerg Billeter <j@bitron.ch>
Mon, 26 Nov 2007 23:29:35 +0000 (23:29 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Mon, 26 Nov 2007 23:29:35 +0000 (23:29 +0000)
2007-11-27  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: add scanf and fscanf bindings

svn path=/trunk/; revision=724

ChangeLog
vapi/glib-2.0.vapi

index e8b1f8f..a9b3d53 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-27  Jürg Billeter  <j@bitron.ch>
+
+       * vapi/glib-2.0.vapi: add scanf and fscanf bindings
+
 2007-11-25  Jürg Billeter  <j@bitron.ch>
 
        * configure.ac: Post-release version bump
index 5384175..2ac035d 100644 (file)
@@ -482,6 +482,8 @@ public class string {
        public bool has_suffix (string! suffix);
        [CCode (cname = "g_strdup_printf"), PrintfFormat]
        public string printf (...);
+       [CCode (cname = "scanf")]
+       public int scanf (...);
        [CCode (cname = "g_strconcat")]
        public string concat (string string2, ...);
        [CCode (cname = "g_strndup")]
@@ -1757,6 +1759,8 @@ namespace GLib {
                public weak string gets (string s, int size);
                [CCode (cname = "feof")]
                public bool eof ();
+               [CCode (cname = "fscanf")]
+               public int scanf (string format, ...);
        }
 
        [CCode (cprefix = "g_file_", cheader_filename = "glib/gstdio.h")]