コード例 #1
0
        private static unsafe int DoSetRampRate(IntPtr aPtr, uint aVersion, uint anewRampRate)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceUpnpOrgDimming1 self = (DvServiceUpnpOrgDimming1)gch.Target;

            self.SetRampRate(aVersion, anewRampRate);
            return(0);
        }
コード例 #2
0
        private static unsafe int DoResumeRamp(IntPtr aPtr, uint aVersion)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceUpnpOrgDimming1 self = (DvServiceUpnpOrgDimming1)gch.Target;

            self.ResumeRamp(aVersion);
            return(0);
        }
コード例 #3
0
        private static unsafe int DoStartRampToLevel(IntPtr aPtr, uint aVersion, uint anewLoadLevelTarget, uint anewRampTime)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceUpnpOrgDimming1 self = (DvServiceUpnpOrgDimming1)gch.Target;

            self.StartRampToLevel(aVersion, anewLoadLevelTarget, anewRampTime);
            return(0);
        }
コード例 #4
0
        private static unsafe int DoSetOnEffectLevel(IntPtr aPtr, uint aVersion, uint anewOnEffectLevel)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceUpnpOrgDimming1 self = (DvServiceUpnpOrgDimming1)gch.Target;

            self.SetOnEffectLevel(aVersion, anewOnEffectLevel);
            return(0);
        }
コード例 #5
0
        private static unsafe int DoSetLoadLevelTarget(IntPtr aPtr, uint aVersion, uint anewLoadlevelTarget)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceUpnpOrgDimming1 self = (DvServiceUpnpOrgDimming1)gch.Target;

            self.SetLoadLevelTarget(aVersion, anewLoadlevelTarget);
            return(0);
        }
コード例 #6
0
        private static unsafe int DoSetOnEffect(IntPtr aPtr, uint aVersion, char *anewOnEffect)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceUpnpOrgDimming1 self = (DvServiceUpnpOrgDimming1)gch.Target;
            string newOnEffect            = Marshal.PtrToStringAnsi((IntPtr)anewOnEffect);

            self.SetOnEffect(aVersion, newOnEffect);
            return(0);
        }
コード例 #7
0
        private static unsafe int DoGetRampTime(IntPtr aPtr, uint aVersion, uint *aretRampTime)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceUpnpOrgDimming1 self = (DvServiceUpnpOrgDimming1)gch.Target;
            uint retRampTime;

            self.GetRampTime(aVersion, out retRampTime);
            *aretRampTime = retRampTime;
            return(0);
        }
コード例 #8
0
        private static unsafe int DoGetRampPaused(IntPtr aPtr, uint aVersion, int *aretRampPaused)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceUpnpOrgDimming1 self = (DvServiceUpnpOrgDimming1)gch.Target;
            bool retRampPaused;

            self.GetRampPaused(aVersion, out retRampPaused);
            *aretRampPaused = (retRampPaused ? 1 : 0);
            return(0);
        }
コード例 #9
0
        private static unsafe int DoGetStepDelta(IntPtr aPtr, uint aVersion, uint *aretStepDelta)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceUpnpOrgDimming1 self = (DvServiceUpnpOrgDimming1)gch.Target;
            uint retStepDelta;

            self.GetStepDelta(aVersion, out retStepDelta);
            *aretStepDelta = retStepDelta;
            return(0);
        }
コード例 #10
0
        private static unsafe int DoGetLoadLevelStatus(IntPtr aPtr, uint aVersion, uint *aretLoadlevelStatus)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceUpnpOrgDimming1 self = (DvServiceUpnpOrgDimming1)gch.Target;
            uint retLoadlevelStatus;

            self.GetLoadLevelStatus(aVersion, out retLoadlevelStatus);
            *aretLoadlevelStatus = retLoadlevelStatus;
            return(0);
        }
コード例 #11
0
        private static unsafe int DoGetOnEffectParameters(IntPtr aPtr, uint aVersion, char **aretOnEffect, uint *aretOnEffectLevel)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceUpnpOrgDimming1 self = (DvServiceUpnpOrgDimming1)gch.Target;
            string retOnEffect;
            uint   retOnEffectLevel;

            self.GetOnEffectParameters(aVersion, out retOnEffect, out retOnEffectLevel);
            *aretOnEffect      = (char *)Marshal.StringToHGlobalAnsi(retOnEffect).ToPointer();
            *aretOnEffectLevel = retOnEffectLevel;
            return(0);
        }