Exemplo n.º 1
0
        private static unsafe int DoSetSourceIndex(IntPtr aPtr, uint aVersion, uint aaSourceIndex)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkProduct2 self = (DvServiceLinnCoUkProduct2)gch.Target;

            self.SetSourceIndex(aVersion, aaSourceIndex);
            return(0);
        }
Exemplo n.º 2
0
        private static unsafe int DoSetStandby(IntPtr aPtr, uint aVersion, int aaStandby)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkProduct2 self = (DvServiceLinnCoUkProduct2)gch.Target;
            bool aStandby = (aaStandby != 0);

            self.SetStandby(aVersion, aStandby);
            return(0);
        }
Exemplo n.º 3
0
        private static unsafe int DoSetRoom(IntPtr aPtr, uint aVersion, char *aaRoom)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkProduct2 self = (DvServiceLinnCoUkProduct2)gch.Target;
            string aRoom = Marshal.PtrToStringAnsi((IntPtr)aaRoom);

            self.SetRoom(aVersion, aRoom);
            return(0);
        }
Exemplo n.º 4
0
        private static unsafe int DoSourceType(IntPtr aPtr, uint aVersion, uint aaSourceIndex, char **aaSourceType)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkProduct2 self = (DvServiceLinnCoUkProduct2)gch.Target;
            string aSourceType;

            self.SourceType(aVersion, aaSourceIndex, out aSourceType);
            *aaSourceType = (char *)Marshal.StringToHGlobalAnsi(aSourceType).ToPointer();
            return(0);
        }
Exemplo n.º 5
0
        private static unsafe int DoSourceCount(IntPtr aPtr, uint aVersion, uint *aaSourceCount)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkProduct2 self = (DvServiceLinnCoUkProduct2)gch.Target;
            uint aSourceCount;

            self.SourceCount(aVersion, out aSourceCount);
            *aaSourceCount = aSourceCount;
            return(0);
        }
Exemplo n.º 6
0
        private static unsafe int DoRoom(IntPtr aPtr, uint aVersion, char **aaRoom)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkProduct2 self = (DvServiceLinnCoUkProduct2)gch.Target;
            string aRoom;

            self.Room(aVersion, out aRoom);
            *aaRoom = (char *)Marshal.StringToHGlobalAnsi(aRoom).ToPointer();
            return(0);
        }