public static bool ProtocolIsSupported(Gst.URIType type, string protocol) { IntPtr native_protocol = GLib.Marshaller.StringToPtrGStrdup(protocol); bool raw_ret = gst_uri_protocol_is_supported((int)type, native_protocol); bool ret = raw_ret; GLib.Marshaller.Free(native_protocol); return(ret); }
static int GetTypeFull_cb(IntPtr gtype) { try { GLib.GType gt = new GLib.GType(gtype); System.Type t = (System.Type)gt; System.Reflection.PropertyInfo pi = t.GetProperty("Type", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.FlattenHierarchy); Gst.URIType __result = Gst.URIType.Unknown; if (pi != null && pi.PropertyType == typeof(Gst.URIType)) { __result = (Gst.URIType)pi.GetValue(null, null); } return((int)__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }