Exemple #1
0
        private static unsafe int DoSetRoom(IntPtr aPtr, uint aVersion, char *aaRoom)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkProduct1 self = (DvServiceLinnCoUkProduct1)gch.Target;
            string aRoom = Marshal.PtrToStringAnsi((IntPtr)aaRoom);

            self.SetRoom(aVersion, aRoom);
            return(0);
        }
Exemple #2
0
        private static unsafe int DoSetStandby(IntPtr aPtr, uint aVersion, int aaStandby)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkProduct1 self = (DvServiceLinnCoUkProduct1)gch.Target;
            bool aStandby = (aaStandby != 0);

            self.SetStandby(aVersion, aStandby);
            return(0);
        }
Exemple #3
0
        private static unsafe int DoRoom(IntPtr aPtr, uint aVersion, char **aaRoom)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkProduct1 self = (DvServiceLinnCoUkProduct1)gch.Target;
            string aRoom;

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