Go to the source code of this file.
Data Structures | |
| struct | tEventQueue | 
| struct | tEventQueueDetails | 
Macros | |
| #define | ROOTDIR "/ProgramFiles/Settings/SDS" | 
| #define | LOGFILE "SDS.log" | 
Enumerations | |
| enum | tHookHandlerState {  HHS_Init , HHS_Idle , HHS_EF00Received , HHS_PowerOffCancel , HHS_ShutdownTimerDiags , HHS_Shutdown , HHS_Exit }  | 
Functions | |
| void | CreateRootDir (void) | 
| void | WriteLog (char *s) | 
| void | Hooked_ApplEvent_CallHandler (unsigned int a1, unsigned int a2) | 
| bool | SetHandler (dword EventID, void *Handler, void **OrigHandler) | 
| bool | SDS (void) | 
| void | SDSTerminate (void) | 
Variables | |
| void(* | __DevFront_PowerOffReply )(void) = NULL | 
| void(* | __DevFront_PowerOffCancel )(void) = NULL | 
| bool | ShutdownHooked = FALSE | 
| int | LastStatus = 0 | 
| char | Log [512] | 
| tHookHandlerState | HookHandlerState = HHS_Init | 
| void(* | OrigHandler )(word, dword) | 
| enum tHookHandlerState | 
| void CreateRootDir | ( | void | ) | 
Definition at line 45 of file SDS.c.
References HDD_ChangeDir(), HDD_TAP_PopDir(), HDD_TAP_PushDir(), TRACEENTER, and TRACEEXIT.
Referenced by SDS().
| void Hooked_ApplEvent_CallHandler | ( | unsigned int | a1, | 
| unsigned int | a2 | ||
| ) | 
Definition at line 68 of file SDS.c.
References ShutdownHooked, TRACEENTER, and TRACEEXIT.
Referenced by SDS().
| bool SDS | ( | void | ) | 
Definition at line 157 of file SDS.c.
References __DevFront_PowerOffCancel, __DevFront_PowerOffReply, CreateRootDir(), FIS_fwDevFront_PowerOffCancel(), FIS_fwDevFront_PowerOffReply(), HDD_TAP_GetFileNameByIndex(), HDD_TAP_GetInfo(), HDD_TAP_SendEvent(), HHS_EF00Received, HHS_Exit, HHS_Idle, HHS_Init, HHS_PowerOffCancel, HHS_Shutdown, HHS_ShutdownTimerDiags, Hooked_ApplEvent_CallHandler(), HookHandlerState, InitTAPex(), LastStatus, LibInitialized, Log, OrigHandler, SetHandler(), Shutdown(), ShutdownHooked, TAP_TableIndex, tTAPInfo::TAPName, TaskPower, TRACEENTER, TRACEEXIT, and WriteLog().
| void SDSTerminate | ( | void | ) | 
Definition at line 347 of file SDS.c.
References HHS_Exit, HookHandlerState, LastStatus, OrigHandler, SetHandler(), TRACEENTER, TRACEEXIT, and WriteLog().
| bool SetHandler | ( | dword | EventID, | 
| void * | Handler, | ||
| void ** | OrigHandler | ||
| ) | 
Definition at line 80 of file SDS.c.
References tEventQueue::EventID, FIS_vTopEvent(), tEventQueueDetails::Handler, LastStatus, Log, OrigHandler, tEventQueue::Queue, TRACEENTER, TRACEEXIT, and WriteLog().
Referenced by SDS(), and SDSTerminate().
| void WriteLog | ( | char * | s | ) | 
Definition at line 60 of file SDS.c.
References HDD_TAP_PopDir(), HDD_TAP_PushDir(), LogEntry(), LOGFILE, ROOTDIR, and TIMESTAMP_YMDHMS.
Referenced by SDS(), SDSTerminate(), and SetHandler().
| void(* __DevFront_PowerOffCancel) (void) | ( | void | ) | = NULL | 
| void(* __DevFront_PowerOffReply) (void) | ( | void | ) | = NULL | 
| tHookHandlerState HookHandlerState = HHS_Init | 
Definition at line 41 of file SDS.c.
Referenced by SDS(), and SDSTerminate().
| int LastStatus = 0 | 
Definition at line 39 of file SDS.c.
Referenced by SDS(), SDSTerminate(), and SetHandler().
| char Log[512] | 
Definition at line 40 of file SDS.c.
Referenced by SDS(), and SetHandler().
| void(* OrigHandler) (word, dword) | ( | word | , | 
| dword | |||
| ) | 
Definition at line 43 of file SDS.c.
Referenced by SDS(), SDSTerminate(), and SetHandler().
| bool ShutdownHooked = FALSE | 
Definition at line 38 of file SDS.c.
Referenced by Hooked_ApplEvent_CallHandler(), and SDS().