|
SWILIB API (X75)
|
Legacy or bad functions, usually used in the patches.
Usage: #include <swilib/legacy.h>
Data Structures | |
| struct | RAM_DATETIME |
| RAM copy of the RTC calendar. More... | |
Typedefs | |
| typedef struct RAM_DATETIME | RAM_DATETIME |
Functions | |
| int | memcmp_2 (const void *ptr1, const void *ptr2, size_t num) |
| Compare two blocks of memory. | |
| void * | memcpy_2 (void *destination, const void *source, size_t num) |
| Copy block of memory. | |
| char * | strrchr_2 (const char *str, int character) |
| Locate last occurrence of character in string. | |
| int | wsprintf_2 (WSHDR *s, const char *format,...) |
| Write formatted output to WSHDR. | |
| WSHDR * | AllocWS_2 (int size) |
| Create new empty WSHDR. | |
| void | FreeWS_2 (WSHDR *str) |
| Free WSHDR. | |
| WSHDR * | wstrcpy_2 (WSHDR *destination, WSHDR *source) |
| Copy WSHDR. | |
| void | ClearMemory (void *ptr, int num) |
| Fill block of memory with zero. | |
| char * | GetPaletteAdrByColorIndex_2 (int index) |
| Get color from the phone theme. | |
| int | IsTimerProc_2 (GBSTMR *timer) |
| Check if timer is not yet expired. | |
| void | LockSched_2 (void) |
| Lock OS scheduler. | |
| void | UnlockSched_2 (void) |
| Unlock OS scheduler. | |
| void | DrawImg_2 (int x, int y, int picture) |
| Draw image from the PIT table. | |
| void | DrawRoundedFrame_2 (int x1, int y1, int x2, int y2, int x_round, int y_round, int flags, const char *pen, const char *brush) |
| Draw a rounded rectangle. | |
| void | DrawRectangle_2 (int x1, int y1, int x2, int y2, int flags, const char *pen, const char *brush) |
| Draw a rectangle. | |
| void | DrwObj_SetColor_2 (DRWOBJ *drwobj, const char *pen, const char *brush) |
| Set color to the DRWOBJ. | |
| void | GeneralFuncF1_2 (int cmd) |
| Request closing of the focused GUI. | |
| int | GetTimeFormat () |
| Get date&time format from settings. | |
| short | GetWavLenByContent (const uint8_t **data, uint32_t riff_size, void *info) |
| Parse the header of an IMA ADPCM .wav file (mono, 4 bits, 8000 or 16000 Hz). | |
| void * | RamCurrentTrack () |
| Pointer to the current track in MediaPlayer. | |
| void * | RamAudioParamsAddr (void) |
| Pointer to the audio params (unknown). | |
| RAM_DATETIME * | RamDateTime () |
| Pointer to the current date and time. | |
| char * | RamKeyBuffer (void) |
| Pointer to the current pressed key. | |
| char * | RamIsNumberTyping (void) |
| Check if user typing phone number. | |
| void * | RamShutdownMode () |
| Pointer to the state of the power on/off process (MSMONOFF). | |
| void * | RamSizeOfPart () |
| Unknown. | |
| int * | RamSizeOfReceivedOrSentFile () |
| Get size of the recevied or sent file. | |
| const char * | RamNameOfReceivedOrSentFile () |
| Get size of the recevied or sent file. | |
| int * | RamIsSendingOrReceivingFileByBT () |
| Check if currently sending or receiving file by BT. | |
| int * | RamIsNotOnMainscreen () |
| Check if the IDLE is NOT currently displayed. | |
| void | editOrNewTXTModule (const char *file) |
| Unknown. | |
| void | SwitchVibraOnOff (void) |
| Toggle vibration for the current profile. | |
| int | GetProfileFilter (int profile_id) |
| Unknown. | |
Nucleus | |
| void | NU_Restore_Interrupts_2 (void) |
| void | NU_Unprotect_2 (void) |
| void | NU_Disable_History_Saving_2 (void) |
| void | NU_Enable_History_Saving_2 (void) |
| char * | RamInputLanguage () |
| Input language flags byte (historical address, not the language ID). | |
| struct RAM_DATETIME |
Compare two blocks of memory.
| ptr1 | Pointer to block of memory. |
| ptr2 | Pointer to block of memory. |
| num | Number of bytes to compare. |
| void * memcpy_2 | ( | void * | destination, |
| const void * | source, | ||
| size_t | num ) |
Copy block of memory.
| destination | Pointer to the destination array where the content is to be copied, type-casted to a pointer of type void*. |
| source | Pointer to the source of data to be copied, type-casted to a pointer of type const void*. |
| num | Number of bytes to copy. |
| char * strrchr_2 | ( | const char * | str, |
| int | character ) |
Locate last occurrence of character in string.
| str | C string. |
| character | Character to be located. It is passed as its int promotion, but it is internally converted back to char. |
Write formatted output to WSHDR.
Additional placeholders:
%t - CP1251 string (cyrillic)%s - CP1252 string (latin)%w - UTF-16 string (WSHDR)| [out] | s | pointer to a WSHDR where the resulting string is stored, the buffer should be large enough to contain the resulting string |
| format | C-string that contains a format string that follows the same specifications as standart format in any sprintf/printf (CP1252, latin) |
| WSHDR * AllocWS_2 | ( | int | size | ) |
| void FreeWS_2 | ( | WSHDR * | str | ) |
| void ClearMemory | ( | void * | ptr, |
| int | num ) |
Fill block of memory with zero.
| ptr | Pointer to the block of memory to fill. |
| num | Number of bytes to be set to the zero. |
| char * GetPaletteAdrByColorIndex_2 | ( | int | index | ) |
Get color from the phone theme.
| index | color index in .col, see ThemePeletteColorID |
| int IsTimerProc_2 | ( | GBSTMR * | timer | ) |
Check if timer is not yet expired.
| timer | pointer to the GBS timer |
| void LockSched_2 | ( | void | ) |
Lock OS scheduler.
| void UnlockSched_2 | ( | void | ) |
Unlock OS scheduler.
| void DrawImg_2 | ( | int | x, |
| int | y, | ||
| int | picture ) |
Draw image from the PIT table.
| x,y | image coordinates |
| picture | image number |
| void DrawRoundedFrame_2 | ( | int | x1, |
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| int | x_round, | ||
| int | y_round, | ||
| int | flags, | ||
| const char * | pen, | ||
| const char * | brush ) |
Draw a rounded rectangle.
| x1,y1 | left+top coordinates |
| x2,y2 | right+bottom coordinates |
| x_round | horizontal round |
| y_round | vertical round |
| flags | drawing flags bitmask, see RectDrawingFlags |
| pen | stroke color |
| brush | fill color |
| void DrawRectangle_2 | ( | int | x1, |
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| int | flags, | ||
| const char * | pen, | ||
| const char * | brush ) |
Draw a rectangle.
| x1,y1 | left+top coordinates |
| x2,y2 | right+bottom coordinates |
| flags | drawing flags bitmask, see RectDrawingFlags |
| pen | stroke color |
| brush | fill color |
Set color to the DRWOBJ.
| drwobj | draw object |
| pen | stroke color |
| brush | fill color |
| void GeneralFuncF1_2 | ( | int | cmd | ) |
Request closing of the focused GUI.
| cmd | code which bypassed the MSG_GUI_DESTROYED event |
| int GetTimeFormat | ( | ) |
Get date&time format from settings.
| short GetWavLenByContent | ( | const uint8_t ** | data, |
| uint32_t | riff_size, | ||
| void * | info ) |
Parse the header of an IMA ADPCM .wav file (mono, 4 bits, 8000 or 16000 Hz).
| data | pointer to the pointer to the .wav file bytes, starting with "RIFF" | |
| riff_size | RIFF chunk size (32-bit value at offset 4 of the file) | |
| [out] | info | buffer of 0xD8 bytes |
| void * RamCurrentTrack | ( | ) |
Pointer to the current track in MediaPlayer.
| void * RamAudioParamsAddr | ( | void | ) |
Pointer to the audio params (unknown).
| RAM_DATETIME * RamDateTime | ( | ) |
Pointer to the current date and time.
| char * RamKeyBuffer | ( | void | ) |
| char * RamIsNumberTyping | ( | void | ) |
Check if user typing phone number.
| void * RamShutdownMode | ( | ) |
Pointer to the state of the power on/off process (MSMONOFF).
| void * RamSizeOfPart | ( | ) |
Unknown.
| int * RamSizeOfReceivedOrSentFile | ( | ) |
Get size of the recevied or sent file.
| const char * RamNameOfReceivedOrSentFile | ( | ) |
Get size of the recevied or sent file.
| int * RamIsSendingOrReceivingFileByBT | ( | ) |
Check if currently sending or receiving file by BT.
| int * RamIsNotOnMainscreen | ( | ) |
Check if the IDLE is NOT currently displayed.
| void editOrNewTXTModule | ( | const char * | file | ) |
Unknown.
| void SwitchVibraOnOff | ( | void | ) |
Toggle vibration for the current profile.
| int GetProfileFilter | ( | int | profile_id | ) |
Unknown.
| profile_id | profile ID |
| void NU_Restore_Interrupts_2 | ( | void | ) |
| void NU_Unprotect_2 | ( | void | ) |
| void NU_Disable_History_Saving_2 | ( | void | ) |
| void NU_Enable_History_Saving_2 | ( | void | ) |
| char * RamInputLanguage | ( | ) |
Input language flags byte (historical address, not the language ID).