Ejemplo n.º 1
0
        private static unsafe int DoReboot(IntPtr aPtr, uint aVersion, uint aaDelay)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDiagnostics1 self = (DvServiceLinnCoUkDiagnostics1)gch.Target;

            self.Reboot(aVersion, aaDelay);
            return(0);
        }
Ejemplo n.º 2
0
        private static unsafe int DoCrashDataClear(IntPtr aPtr, uint aVersion)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDiagnostics1 self = (DvServiceLinnCoUkDiagnostics1)gch.Target;

            self.CrashDataClear(aVersion);
            return(0);
        }
Ejemplo n.º 3
0
        private static unsafe int DoSetStateVariablePeriod(IntPtr aPtr, uint aVersion, uint aaPeriod)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDiagnostics1 self = (DvServiceLinnCoUkDiagnostics1)gch.Target;

            self.SetStateVariablePeriod(aVersion, aaPeriod);
            return(0);
        }
Ejemplo n.º 4
0
        private static unsafe int DoStateVariable(IntPtr aPtr, uint aVersion, uint *aaStateVariable)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDiagnostics1 self = (DvServiceLinnCoUkDiagnostics1)gch.Target;
            uint aStateVariable;

            self.StateVariable(aVersion, out aStateVariable);
            *aaStateVariable = aStateVariable;
            return(0);
        }
Ejemplo n.º 5
0
        private static unsafe int DoCrashDataStatus(IntPtr aPtr, uint aVersion, char **aaCrashDataStatus)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDiagnostics1 self = (DvServiceLinnCoUkDiagnostics1)gch.Target;
            string aCrashDataStatus;

            self.CrashDataStatus(aVersion, out aCrashDataStatus);
            *aaCrashDataStatus = (char *)Marshal.StringToHGlobalAnsi(aCrashDataStatus).ToPointer();
            return(0);
        }
Ejemplo n.º 6
0
        private static unsafe int DoElfFingerprint(IntPtr aPtr, uint aVersion, char **aaElfFileFingerprint)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDiagnostics1 self = (DvServiceLinnCoUkDiagnostics1)gch.Target;
            string aElfFileFingerprint;

            self.ElfFingerprint(aVersion, out aElfFileFingerprint);
            *aaElfFileFingerprint = (char *)Marshal.StringToHGlobalAnsi(aElfFileFingerprint).ToPointer();
            return(0);
        }
Ejemplo n.º 7
0
        private static unsafe int DoDiagnostic(IntPtr aPtr, uint aVersion, char *aaDiagnosticType, char **aaDiagnosticInfo)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDiagnostics1 self = (DvServiceLinnCoUkDiagnostics1)gch.Target;
            string aDiagnosticType             = Marshal.PtrToStringAnsi((IntPtr)aaDiagnosticType);
            string aDiagnosticInfo;

            self.Diagnostic(aVersion, aDiagnosticType, out aDiagnosticInfo);
            *aaDiagnosticInfo = (char *)Marshal.StringToHGlobalAnsi(aDiagnosticInfo).ToPointer();
            return(0);
        }
Ejemplo n.º 8
0
        private static unsafe int DoSysLog(IntPtr aPtr, uint aVersion, char **aaSysLog, int *aaSysLogLen)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDiagnostics1 self = (DvServiceLinnCoUkDiagnostics1)gch.Target;
            string aSysLog;

            self.SysLog(aVersion, out aSysLog);
            *aaSysLog    = (char *)Marshal.StringToHGlobalAnsi(aSysLog).ToPointer();
            *aaSysLogLen = aSysLog.Length;
            return(0);
        }
Ejemplo n.º 9
0
        private static unsafe int DoCrashDataFetch(IntPtr aPtr, uint aVersion, char **aaCrashData, int *aaCrashDataLen)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDiagnostics1 self = (DvServiceLinnCoUkDiagnostics1)gch.Target;
            string aCrashData;

            self.CrashDataFetch(aVersion, out aCrashData);
            *aaCrashData    = (char *)Marshal.StringToHGlobalAnsi(aCrashData).ToPointer();
            *aaCrashDataLen = aCrashData.Length;
            return(0);
        }
Ejemplo n.º 10
0
        private static unsafe int DoEcho(IntPtr aPtr, uint aVersion, char *aaIn, char **aaOut)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDiagnostics1 self = (DvServiceLinnCoUkDiagnostics1)gch.Target;
            string aIn = Marshal.PtrToStringAnsi((IntPtr)aaIn);
            string aOut;

            self.Echo(aVersion, aIn, out aOut);
            *aaOut = (char *)Marshal.StringToHGlobalAnsi(aOut).ToPointer();
            return(0);
        }