Add .dll to gstreamersharpglue DllImport

Nescessary for .NET compatibility, where .dll isn't
added for libraries with a . in the filename.
This commit is contained in:
Maarten Bosmans 2009-05-25 12:12:35 +02:00 committed by Sebastian Dröge
parent f665c749b6
commit 6cb104a67a
17 changed files with 41 additions and 41 deletions

View file

@ -14,9 +14,9 @@ public Buffer (byte[] data) : this () {
Data = data;
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_buffer_get_data_offset ();
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static void gstsharp_gst_buffer_set_data (IntPtr handle, IntPtr data, uint size);
[DllImport ("libglib-2.0-0.dll") ]
extern static IntPtr g_try_malloc (int size);
@ -103,7 +103,7 @@ public Gst.Caps Caps {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_buffer_get_timestamp_offset ();
static uint timestamp_offset = gstsharp_gst_buffer_get_timestamp_offset ();
@ -126,7 +126,7 @@ public ulong Timestamp {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_buffer_get_duration_offset ();
static uint duration_offset = gstsharp_gst_buffer_get_duration_offset ();
@ -149,7 +149,7 @@ public ulong Duration {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_buffer_get_offset_offset ();
static uint offset_offset = gstsharp_gst_buffer_get_offset_offset ();
@ -172,7 +172,7 @@ public ulong Offset {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_buffer_get_offset_end_offset ();
static uint offset_end_offset = gstsharp_gst_buffer_get_offset_end_offset ();

View file

@ -8,7 +8,7 @@ public static bool TimeIsValid (ulong time) {
return (time != TimeNone);
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_clock_get_entries_changed_offset ();
static uint entries_changed_offset = gstsharp_gst_clock_get_entries_changed_offset ();
@ -60,7 +60,7 @@ public void Broadcast () {
g_cond_broadcast (EntriesChangedPtr);
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_clock_get_slave_lock_offset ();
static uint slave_lock_offset = gstsharp_gst_clock_get_slave_lock_offset ();
@ -108,7 +108,7 @@ public Gst.Clock Master {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_clock_get_entries_offset ();
static uint entries_offset = gstsharp_gst_clock_get_entries_offset ();
@ -127,7 +127,7 @@ protected Gst.ClockEntry[] Entries {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_clock_get_times_offset ();
static uint times_offset = gstsharp_gst_clock_get_times_offset ();

View file

@ -1,6 +1,6 @@
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
static extern GstSharp.ClockCallbackNative gstsharp_gst_clock_entry_get_func (IntPtr raw);
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
static extern void gstsharp_gst_clock_entry_set_func (IntPtr raw, GstSharp.ClockCallbackNative func);
private GstSharp.ClockCallbackWrapper wrapper;

View file

@ -113,7 +113,7 @@ namespace Gst {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
static extern int gstsharp_g_closure_sizeof ();
public static void Disconnect (GLib.Object o, string name, DynamicSignalHandler handler) {
@ -296,7 +296,7 @@ namespace Gst {
return ret;
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
static extern IntPtr gstsharp_g_type_from_instance (IntPtr o);
[DllImport ("libgobject-2.0.dll") ]

View file

@ -1,6 +1,6 @@
public Event (GLib.Value val) : base (val) { }
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_event_get_timestamp_offset ();
static uint timestamp_offset = gstsharp_gst_event_get_timestamp_offset ();
@ -22,7 +22,7 @@ public ulong Timestamp {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_event_get_src_offset ();
[DllImport ("libgobject-2.0.dll") ]

View file

@ -3,7 +3,7 @@ protected override GLib.Opaque Copy (IntPtr raw)
return GLib.Opaque.GetOpaque (raw, typeof (Gst.IndexEntry), true);
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_index_entry_get_id_description_offset ();
static uint id_description_offset = gstsharp_gst_index_entry_get_id_description_offset ();
@ -19,7 +19,7 @@ public string IdDescription {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_index_entry_get_assoc_nassocs_offset ();
static uint assoc_nassocs_offset = gstsharp_gst_index_entry_get_assoc_nassocs_offset ();
@ -35,7 +35,7 @@ public int AssocNAssocs {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_index_entry_get_assoc_assocs_offset ();
static uint assoc_assocs_offset = gstsharp_gst_index_entry_get_assoc_assocs_offset ();
@ -59,7 +59,7 @@ public Gst.IndexAssociation[] AssocAssocs {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_index_entry_get_assoc_flags_offset ();
static uint assoc_flags_offset = gstsharp_gst_index_entry_get_assoc_flags_offset ();
@ -75,7 +75,7 @@ public Gst.AssocFlags AssocFlags {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_index_entry_get_object_key_offset ();
static uint object_key_offset = gstsharp_gst_index_entry_get_object_key_offset ();
@ -91,7 +91,7 @@ public string ObjectKey {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_index_entry_get_object_type_offset ();
static uint object_type_offset = gstsharp_gst_index_entry_get_object_type_offset ();
@ -107,7 +107,7 @@ public GLib.GType ObjectGType {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_index_entry_get_object_object_offset ();
static uint object_object_offset = gstsharp_gst_index_entry_get_object_object_offset ();
@ -123,7 +123,7 @@ public object ObjectObject {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_index_entry_get_format_format_offset ();
static uint format_format_offset = gstsharp_gst_index_entry_get_format_format_offset ();
@ -139,7 +139,7 @@ public Gst.Format FormatFormat {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_index_entry_get_format_key_offset ();
static uint format_key_offset = gstsharp_gst_index_entry_get_format_key_offset ();

View file

@ -1,4 +1,4 @@
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
static extern void gstsharp_gst_index_factory_set_plugin (IntPtr factory, IntPtr plugin);
public static bool Register (Gst.Plugin plugin, string name, string longdesc, GLib.GType gtype) {

View file

@ -124,7 +124,7 @@ $(API): $(srcdir)/$(RAW_API) $(srcdir)/$(METADATA) $(srcdir)/$(SYMBOLS)
generated-stamp: $(API) $(build_customs) $(overrides)
$(MONO) $(top_builddir)/generator/gst-gapi_codegen.exe --generate $(API) \
--outdir=generated --customdir=$(srcdir) --assembly-name=$(ASSEMBLY_NAME) \
--gluelib-name=gstreamersharpglue-0.10 --glue-filename=glue/generated.c \
--gluelib-name=gstreamersharpglue-0.10.dll --glue-filename=glue/generated.c \
--glue-includes=$(glue_includes) \
&& cp $(overrides) $(builddir)/generated \
&& sed 's;public class ObjectManager;internal class ObjectManager;g' generated/ObjectManager.cs > generated/ObjectManager.cs.tmp \

View file

@ -1,6 +1,6 @@
public Message (GLib.Value val) : base (val) { }
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_message_get_timestamp_offset ();
static uint timestamp_offset = gstsharp_gst_message_get_timestamp_offset ();
@ -22,7 +22,7 @@ public ulong Timestamp {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_message_get_src_offset ();
[DllImport ("libgobject-2.0.dll") ]

View file

@ -1,16 +1,16 @@
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gst__interfacessharp_gst__interfaces_mixertrack_get_label_offset ();
static uint label_offset = gst__interfacessharp_gst__interfaces_mixertrack_get_label_offset ();
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gst__interfacessharp_gst__interfaces_mixertrack_get_flags_offset ();
static uint flags_offset = gst__interfacessharp_gst__interfaces_mixertrack_get_flags_offset ();
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gst__interfacessharp_gst__interfaces_mixertrack_get_num_channels_offset ();
static uint num_channels_offset = gst__interfacessharp_gst__interfaces_mixertrack_get_num_channels_offset ();
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gst__interfacessharp_gst__interfaces_mixertrack_get_min_volume_offset ();
static uint min_volume_offset = gst__interfacessharp_gst__interfaces_mixertrack_get_min_volume_offset ();
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gst__interfacessharp_gst__interfaces_mixertrack_get_max_volume_offset ();
static uint max_volume_offset = gst__interfacessharp_gst__interfaces_mixertrack_get_max_volume_offset ();

View file

@ -95,7 +95,7 @@ public Gst.Object Parent {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_object_get_lock_offset ();
static uint lock_offset = gstsharp_gst_object_get_lock_offset ();

View file

@ -387,7 +387,7 @@ public Gst.FlowReturn Chain (Gst.Buffer buffer) {
return ret;
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_pad_get_stream_lock_offset ();
static uint stream_lock_offset = gstsharp_gst_pad_get_stream_lock_offset ();

View file

@ -93,7 +93,7 @@ namespace Gst {
[DllImport ("libgobject-2.0-0.dll") ]
static extern void g_param_value_set_default (IntPtr pspec, ref GLib.Value val);
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
static extern bool gstsharp_g_param_spec_get_range (IntPtr pspec, ref GLib.Value min, ref GLib.Value max);

View file

@ -220,7 +220,7 @@ public bool FixateFieldNearestFraction (string field_name, Fraction target) {
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_structure_get_parent_refcount_offset ();
static uint parent_refcount_offset = gstsharp_gst_structure_get_parent_refcount_offset ();

View file

@ -57,7 +57,7 @@ public object this[string tag] {
}
}
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
static extern void gstsharp_gst_tag_list_add_value (IntPtr list, Gst.TagMergeMode mode, IntPtr tag, ref GLib.Value v);
public void Add (Gst.TagMergeMode mode, string tag, object value) {

View file

@ -1,4 +1,4 @@
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_task_get_cond_offset ();
static uint cond_offset = gstsharp_gst_task_get_cond_offset ();

View file

@ -15,7 +15,7 @@ private GstSharp.TypeFindPeekFunctionWrapper peek;
private GstSharp.TypeFindSuggestFunctionWrapper suggest;
private GstSharp.TypeFindGetLengthFunctionWrapper get_length;
[DllImport ("gstreamersharpglue-0.10") ]
[DllImport ("gstreamersharpglue-0.10.dll") ]
static extern IntPtr gstsharp_gst_type_find_new (GstSharp.TypeFindPeekFunctionNative peek, GstSharp.TypeFindSuggestFunctionNative suggest, GstSharp.TypeFindGetLengthFunctionNative get_length);