예제 #1
0
        public void FdIgnored(Gst.PollFD fd)
        {
            IntPtr native_fd = GLib.Marshaller.StructureToPtrAlloc(fd);

            gst_poll_fd_ignored(Handle, native_fd);
            Marshal.FreeHGlobal(native_fd);
        }
예제 #2
0
        public bool FdHasClosed(Gst.PollFD fd)
        {
            IntPtr native_fd = GLib.Marshaller.StructureToPtrAlloc(fd);
            bool   raw_ret   = gst_poll_fd_has_closed(Handle, native_fd);
            bool   ret       = raw_ret;

            Marshal.FreeHGlobal(native_fd);
            return(ret);
        }
예제 #3
0
        public bool FdCtlWrite(Gst.PollFD fd, bool active)
        {
            IntPtr native_fd = GLib.Marshaller.StructureToPtrAlloc(fd);
            bool   raw_ret   = gst_poll_fd_ctl_write(Handle, native_fd, active);
            bool   ret       = raw_ret;

            Marshal.FreeHGlobal(native_fd);
            return(ret);
        }
예제 #4
0
 static void ReadNative(IntPtr native, ref Gst.PollFD target)
 {
     target = New(native);
 }