public static void RtspAuthCredentialsFree(Gst.Rtsp.RTSPAuthCredential credentials) { IntPtr native_credentials = GLib.Marshaller.StructureToPtrAlloc(credentials); gst_rtsp_auth_credentials_free(native_credentials); Marshal.FreeHGlobal(native_credentials); }
public Gst.Rtsp.RTSPAuthCredential ParseAuthCredentials(Gst.Rtsp.RTSPHeaderField field) { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); IntPtr raw_ret = gst_rtsp_message_parse_auth_credentials(this_as_native, (int)field); Gst.Rtsp.RTSPAuthCredential ret = Gst.Rtsp.RTSPAuthCredential.New(raw_ret); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); return(ret); }