Fix GStreamer DllImports and add a dllmap for the native GStreamer library

This commit is contained in:
Sebastian Dröge 2009-04-07 11:37:11 +02:00
parent 9b43600e1b
commit a5766b5a01
4 changed files with 8 additions and 7 deletions

View file

@ -77,13 +77,13 @@ namespace Gst {
} }
} }
[DllImport ("gstreamer-0.10") ] [DllImport ("gstreamer-0.10.dll") ]
private static extern void gst_init (ref int argc, ref IntPtr argv); private static extern void gst_init (ref int argc, ref IntPtr argv);
[DllImport ("gstreamer-0.10") ] [DllImport ("gstreamer-0.10.dll") ]
private static extern bool gst_init_check (ref int argc, ref IntPtr argv, out IntPtr error); private static extern bool gst_init_check (ref int argc, ref IntPtr argv, out IntPtr error);
[DllImport ("gstreamer-0.10") ] [DllImport ("gstreamer-0.10.dll") ]
private static extern void gst_deinit(); private static extern void gst_deinit();
} }
} }

View file

@ -1,11 +1,11 @@
[DllImport ("gstreamer-0.10") ] [DllImport ("gstreamer-0.10.dll") ]
static extern IntPtr gst_mini_object_ref (IntPtr buf); static extern IntPtr gst_mini_object_ref (IntPtr buf);
public void Ref() { public void Ref() {
IntPtr tmp = gst_mini_object_ref (this.Handle); IntPtr tmp = gst_mini_object_ref (this.Handle);
} }
[DllImport ("gstreamer-0.10") ] [DllImport ("gstreamer-0.10.dll") ]
static extern void gst_mini_object_unref (IntPtr buf); static extern void gst_mini_object_unref (IntPtr buf);
public void Unref() { public void Unref() {

View file

@ -57,10 +57,10 @@ namespace Gst {
} }
} }
[DllImport ("gstreamer-0.10") ] [DllImport ("gstreamer-0.10.dll") ]
private static extern void gst_version (out uint major, out uint minor, out uint micro, out uint nano); private static extern void gst_version (out uint major, out uint minor, out uint micro, out uint nano);
[DllImport ("gstreamer-0.10") ] [DllImport ("gstreamer-0.10.dll") ]
private static extern IntPtr gst_version_string(); private static extern IntPtr gst_version_string();
} }
} }

View file

@ -1,4 +1,5 @@
<configuration> <configuration>
<dllmap dll="libglib-2.0-0.dll" target="libglib-2.0@LIB_PREFIX@.0@LIB_SUFFIX@"/> <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0@LIB_PREFIX@.0@LIB_SUFFIX@"/>
<dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0@LIB_PREFIX@.0@LIB_SUFFIX@"/> <dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0@LIB_PREFIX@.0@LIB_SUFFIX@"/>
<dllmap dll="gstreamer-0.10.dll" target="libgstreamer-0.10@LIB_PREFIX@.0@LIB_SUFFIX@/>
</configuration> </configuration>