Fix library name for the interfaces

This commit is contained in:
Sebastian Dröge 2009-05-12 11:08:08 +02:00
parent c0a39e4503
commit 801680234f
5 changed files with 29 additions and 27 deletions

View file

@ -8,7 +8,7 @@ namespace Gst.Interfaces {
using Gst.Interfaces;
public static class MixerMessage {
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern int gst_mixer_message_get_type(IntPtr message);
public static Gst.Interfaces.MixerMessageType MessageGetType(Gst.Message message) {
@ -17,7 +17,7 @@ namespace Gst.Interfaces {
return ret;
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_message_parse_mute_toggled(IntPtr message, out IntPtr track, out bool mute);
public static void ParseMuteToggled(Gst.Message message, out Gst.Interfaces.MixerTrack track, out bool mute) {
@ -28,7 +28,7 @@ namespace Gst.Interfaces {
track = (MixerTrack) GLib.Object.GetObject (native_ptr, false);
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_message_parse_option_changed(IntPtr message, out IntPtr options, out IntPtr value);
public static void MessageParseOptionChanged(Gst.Message message, out Gst.Interfaces.MixerOptions options, out string value) {
@ -41,7 +41,7 @@ namespace Gst.Interfaces {
value = GLib.Marshaller.Utf8PtrToString (native_value);
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_message_parse_record_toggled(IntPtr message, out IntPtr track, out bool record);
public static void MessageParseRecordToggled(Gst.Message message, out Gst.Interfaces.MixerTrack track, out bool record) {
@ -51,7 +51,7 @@ namespace Gst.Interfaces {
track = (MixerTrack) GLib.Object.GetObject (native_ptr, false);
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_message_parse_volume_changed(IntPtr message, out IntPtr track, out IntPtr volumes, out int num_channels);
public static void MessageParseVolumeChanged(Gst.Message message, out Gst.Interfaces.MixerTrack track, out int[] volumes) {
@ -68,7 +68,7 @@ namespace Gst.Interfaces {
GLib.Marshaller.Free (native_volumes);
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_message_parse_options_list_changed(IntPtr message, out IntPtr options);
public static void MessageParseOptionsListChanged(Gst.Message message, out Gst.Interfaces.MixerOptions options) {

View file

@ -6174,7 +6174,7 @@
</method>
</class>
</namespace>
<namespace name="Gst.Interfaces" library="gstreamer-0.10.dll">
<namespace name="Gst.Interfaces" library="gstinterfaces-0.10.dll">
<enum name="GstColorBalanceType" cname="GstColorBalanceType" gtype="gst_color_balance_type_get_type" type="enum">
<member cname="GST_COLOR_BALANCE_HARDWARE" name="Hardware" />
<member cname="GST_COLOR_BALANCE_SOFTWARE" name="Software" />

View file

@ -118,7 +118,7 @@ namespace Gst.Interfaces {
this.handle = handle;
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern IntPtr gst_color_balance_get_type();
private static GLib.GType _gtype = new GLib.GType (gst_color_balance_get_type ());
@ -174,14 +174,14 @@ namespace Gst.Interfaces {
}
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_color_balance_set_value(IntPtr raw, IntPtr channel, int value);
public void SetValue(Gst.Interfaces.ColorBalanceChannel channel, int value) {
gst_color_balance_set_value(Handle, channel == null ? IntPtr.Zero : channel.Handle, value);
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern IntPtr gst_color_balance_list_channels(IntPtr raw);
public Gst.Interfaces.ColorBalanceChannel[] ListChannels() {
@ -190,7 +190,7 @@ namespace Gst.Interfaces {
return ret;
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern int gst_color_balance_get_value(IntPtr raw, IntPtr channel);
public int GetValue(Gst.Interfaces.ColorBalanceChannel channel) {
@ -199,7 +199,7 @@ namespace Gst.Interfaces {
return ret;
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_color_balance_value_changed(IntPtr raw, IntPtr channel, int value);
public void EmitValueChanged(Gst.Interfaces.ColorBalanceChannel channel, int value) {

View file

@ -218,7 +218,7 @@ namespace Gst.Interfaces {
this.handle = handle;
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern IntPtr gst_mixer_get_type();
private static GLib.GType _gtype = new GLib.GType (gst_mixer_get_type ());
@ -262,7 +262,7 @@ namespace Gst.Interfaces {
}
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_volume_changed(IntPtr raw, IntPtr track, IntPtr volumes);
public void VolumeChanged(Gst.Interfaces.MixerTrack track, int[] volumes) {
@ -278,7 +278,7 @@ namespace Gst.Interfaces {
GLib.Marshaller.Free (native_volumes);
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern IntPtr gst_mixer_list_tracks(IntPtr raw);
public Gst.Interfaces.MixerTrack[] ListTracks() {
@ -287,14 +287,14 @@ namespace Gst.Interfaces {
return ret;
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_set_option(IntPtr raw, IntPtr opts, IntPtr value);
public void SetOption(Gst.Interfaces.MixerOptions opts, string value) {
gst_mixer_set_option(Handle, opts == null ? IntPtr.Zero : opts.Handle, GLib.Marshaller.StringToPtrGStrdup(value));
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_set_volume(IntPtr raw, IntPtr track, IntPtr volumes);
public void SetVolume(Gst.Interfaces.MixerTrack track, int[] volumes) {
@ -311,28 +311,28 @@ namespace Gst.Interfaces {
GLib.Marshaller.Free (volumes_native);
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_mute_toggled(IntPtr raw, IntPtr track, bool mute);
public void MuteToggled(Gst.Interfaces.MixerTrack track, bool mute) {
gst_mixer_mute_toggled(Handle, track == null ? IntPtr.Zero : track.Handle, mute);
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_option_changed(IntPtr raw, IntPtr opts, IntPtr value);
public void OptionChanged(Gst.Interfaces.MixerOptions opts, string value) {
gst_mixer_option_changed(Handle, opts == null ? IntPtr.Zero : opts.Handle, GLib.Marshaller.StringToPtrGStrdup(value));
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_options_list_changed(IntPtr raw, IntPtr opts);
public void OptionsListChanged(Gst.Interfaces.MixerOptions opts) {
gst_mixer_options_list_changed(Handle, opts == null ? IntPtr.Zero : opts.Handle);
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern IntPtr gst_mixer_get_option(IntPtr raw, IntPtr opts);
public string GetOption(Gst.Interfaces.MixerOptions opts) {
@ -341,21 +341,21 @@ namespace Gst.Interfaces {
return ret;
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_set_record(IntPtr raw, IntPtr track, bool record);
public void SetRecord(Gst.Interfaces.MixerTrack track, bool record) {
gst_mixer_set_record(Handle, track == null ? IntPtr.Zero : track.Handle, record);
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_record_toggled(IntPtr raw, IntPtr track, bool record);
public void RecordToggled(Gst.Interfaces.MixerTrack track, bool record) {
gst_mixer_record_toggled(Handle, track == null ? IntPtr.Zero : track.Handle, record);
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_get_volume(IntPtr raw, IntPtr track, ref IntPtr volumes);
public int[] GetVolume(Gst.Interfaces.MixerTrack track) {
@ -371,7 +371,7 @@ namespace Gst.Interfaces {
return volumes;
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern int gst_mixer_get_mixer_flags(IntPtr raw);
public Gst.Interfaces.MixerFlags MixerFlags {
@ -382,14 +382,14 @@ namespace Gst.Interfaces {
}
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_mixer_changed(IntPtr raw);
public void MixerChanged() {
gst_mixer_mixer_changed(Handle);
}
[DllImport("gstreamer-0.10.dll")]
[DllImport("gstinterfaces-0.10.dll")]
static extern void gst_mixer_set_mute(IntPtr raw, IntPtr track, bool mute);
public void SetMute(Gst.Interfaces.MixerTrack track, bool mute) {

View file

@ -28,6 +28,8 @@
<exclude>../../gstreamer/gst/gstquark.h</exclude>
<exclude>../../gstreamer/gst/gettext.h</exclude>
</namespace>
</library>
<library name="gstbase-0.10.dll">
<namespace name="Gst.Interfaces">
<dir>../../gst-plugins-base/gst-libs/gst/interfaces</dir>
<!-- Not bound -->