X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fwrapper%2Fgenwrapper.pl;h=15641aa59dcba3c484c5fd82ace9ffa2155e309c;hb=c39145af2464b19374fac41b252e07480ae1a197;hp=f86333db6182129da69c5216e87911235c158195;hpb=c7c4eb0e94e26d7cb254f5ea616faee85af91a55;p=mono.git diff --git a/mono/wrapper/genwrapper.pl b/mono/wrapper/genwrapper.pl index f86333db618..15641aa59dc 100755 --- a/mono/wrapper/genwrapper.pl +++ b/mono/wrapper/genwrapper.pl @@ -16,7 +16,7 @@ if ($ENV{"OSTYPE"} eq "cygwin") { "errno.h"); } -$cflags = `glib-config --cflags glib`; +$cflags = `pkg-config --cflags glib-2.0`; $cflags =~ s/\n//; $lib = "monowrapper"; @@ -25,15 +25,15 @@ if ($csmode){ $res_struct .= "[CLSCompliant(false)]\n"; } create_struct ("MonoWrapperStat", "stat", - "uint", "st_dev", - "uint", "st_mode", - "uint", "st_nlink", - "uint", "st_uid", - "uint", "st_gid", - "long", "st_size", - "uint", "st_atime", - "uint", "st_mtime", - "uint", "st_ctime", + "uint", "mst_dev", + "uint", "mst_mode", + "uint", "mst_nlink", + "uint", "mst_uid", + "uint", "mst_gid", + "long", "mst_size", + "uint", "mst_atime", + "uint", "mst_mtime", + "uint", "mst_ctime", ); create_func ($lib, "", "seek", "long", @@ -99,6 +99,21 @@ create_func ($lib, "", "rename", "int", "string", "source", "string", "target"); +create_func ($lib, "", "utime", "int", + "string", "path", + "int", "atime", + "int", "mtime"); + +create_func ($lib, "mono_glob_compile", "mono_glob_compile", "IntPtr", + "string", "glob"); + +create_func ($lib, "mono_glob_match", "mono_glob_match", "int", + "IntPtr", "handle", + "string", "str"); + +create_func ($lib, "mono_glob_dispose", "mono_glob_dispose", "void", + "IntPtr", "handle"); + map_const ("int", "%d", "SEEK_SET", "int", "%d", "SEEK_CUR", "int", "%d", "SEEK_END",