mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-09 10:59:39 +00:00
Add URIHandler interface implementation for the element bindings generator
This commit is contained in:
parent
8d7ee5cb44
commit
570da600b6
1 changed files with 56 additions and 0 deletions
56
elementgen/interfaces/GstURIHandler.cs
Normal file
56
elementgen/interfaces/GstURIHandler.cs
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
[GLib.Signal ("new-uri") ]
|
||||||
|
event Gst.NewUriHandler Gst.URIHandler.NewUri {
|
||||||
|
add {
|
||||||
|
GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "new-uri", typeof (Gst.NewUriArgs));
|
||||||
|
sig.AddDelegate (value);
|
||||||
|
}
|
||||||
|
remove {
|
||||||
|
GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "new-uri", typeof (Gst.NewUriArgs));
|
||||||
|
sig.RemoveDelegate (value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport ("libgstreamer-0.10.dll") ]
|
||||||
|
static extern uint gst_uri_handler_get_uri_type (IntPtr raw);
|
||||||
|
|
||||||
|
Gst.URIType Gst.URIHandler.UriType {
|
||||||
|
get {
|
||||||
|
uint raw_ret = gst_uri_handler_get_uri_type (Handle);
|
||||||
|
Gst.URIType ret = (Gst.URIType) raw_ret;
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport ("libgstreamer-0.10.dll") ]
|
||||||
|
static extern bool gst_uri_handler_set_uri (IntPtr raw, IntPtr uri);
|
||||||
|
|
||||||
|
bool Gst.URIHandler.SetUri (string uri) {
|
||||||
|
IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
|
||||||
|
bool raw_ret = gst_uri_handler_set_uri (Handle, native_uri);
|
||||||
|
bool ret = raw_ret;
|
||||||
|
GLib.Marshaller.Free (native_uri);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport ("libgstreamer-0.10.dll") ]
|
||||||
|
static extern IntPtr gst_uri_handler_get_protocols (IntPtr raw);
|
||||||
|
|
||||||
|
string[] Gst.URIHandler.Protocols {
|
||||||
|
get {
|
||||||
|
IntPtr raw_ret = gst_uri_handler_get_protocols (Handle);
|
||||||
|
string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, false);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport ("libgstreamer-0.10.dll") ]
|
||||||
|
static extern IntPtr gst_uri_handler_get_uri (IntPtr raw);
|
||||||
|
|
||||||
|
string Gst.URIHandler.Uri {
|
||||||
|
get {
|
||||||
|
IntPtr raw_ret = gst_uri_handler_get_uri (Handle);
|
||||||
|
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue