SWILIB API (SG)    
Loading...
Searching...
No Matches
legacy.h
Go to the documentation of this file.
1#pragma once
2
3#ifndef __IN_SWILIB__
4#include "base.h"
5#include "date.h"
6#include "gui.h"
7#include "wstring.h"
8#include "gbs.h"
9#endif
10
12
24
29 uint16_t sec;
30 uint16_t min;
31 uint16_t hour;
32 uint16_t day;
33 uint16_t month;
34 uint16_t year;
35};
36
41__swi_begin(0x053)
42int memcmp_2(const void *ptr1, const void *ptr2, size_t num)
43__swi_end(0x053, memcmp_2, (ptr1, ptr2, num));
44
49__swi_begin(0x059)
50void *memcpy_2(void *destination, const void *source, size_t num)
51__swi_end(0x059, memcpy_2, (destination, source, num));
52
57__swi_begin(0x031)
58char *strrchr_2(const char *str, int character)
59__swi_end(0x031, strrchr_2, (str, character));
60
66int wsprintf_2(WSHDR *s, const char *format, ...)
67__swi_variadic_end(0x0A0, wsprintf_2, s, format);
68
73__swi_begin(0x0A4)
74WSHDR *AllocWS_2(int size)
75__swi_end(0x0A4, AllocWS_2, (size));
76
81__swi_begin(0x0A5)
82void FreeWS_2(WSHDR *str)
83__swi_end(0x0A5, FreeWS_2, (str));
84
89__swi_begin(0x0A1)
90WSHDR *wstrcpy_2(WSHDR *destination, WSHDR *source)
91__swi_end(0x0A1, wstrcpy_2, (destination, source));
92
97__swi_begin(0x058)
98void ClearMemory(void *ptr, int num)
99__swi_end(0x058, ClearMemory, (ptr, num));
100
105__swi_begin(0x03F)
108
113__swi_begin(0x057)
115__swi_end(0x057, IsTimerProc_2, (timer));
116
121__swi_begin(0x069)
122void LockSched_2(void)
123__swi_end(0x069, LockSched_2, ());
124
129__swi_begin(0x06A)
131__swi_end(0x06A, UnlockSched_2, ());
132
137__swi_begin(0x024)
138void DrawImg_2(int x, int y, int picture)
139__swi_end(0x024, DrawImg_2, (x, y, picture));
140
145__swi_begin(0x071)
146void DrawRoundedFrame_2(int x1, int y1, int x2, int y2, int x_round, int y_round, int flags, const char *pen, const char *brush)
147__swi_end(0x071, DrawRoundedFrame_2, (x1, y1, x2, y2, x_round, y_round, flags, pen, brush));
148
153__swi_begin(0x09F)
154void DrawRectangle_2(int x1, int y1, int x2, int y2, int flags, const char *pen, const char *brush)
155__swi_end(0x09F, DrawRectangle_2, (x1, y1, x2, y2, flags, pen, brush));
156
161__swi_begin(0x077)
162void DrwObj_SetColor_2(DRWOBJ *drwobj, const char *pen, const char *brush)
163__swi_end(0x077, DrwObj_SetColor_2, (drwobj, pen, brush));
164
169__swi_begin(0x064)
170void GeneralFuncF1_2(int cmd)
171__swi_end(0x064, GeneralFuncF1_2, (cmd));
172
177__swi_begin(0x078)
179__swi_end(0x078, GetTimeFormat, ());
180
191__swi_begin(0x096)
192short GetWavLenByContent(const uint8_t **data, uint32_t riff_size, void *info)
193__swi_end(0x096, GetWavLenByContent, (data, riff_size, info));
194
199__swi_begin(0x80DD)
201__swi_end(0x80DD, RamCurrentTrack, ());
202
208__swi_begin(0x809B)
210__swi_end(0x809B, RamAudioParamsAddr, ());
211
217__swi_begin(0x80CE)
219__swi_end(0x80CE, RamDateTime, ());
220
226__swi_begin(0x80E2)
227char *RamKeyBuffer(void)
228__swi_end(0x80E2, RamKeyBuffer, ());
229
235__swi_begin(0x828F)
237__swi_end(0x828F, RamIsNumberTyping, ());
238
243__swi_begin(0x80D9)
245__swi_end(0x80D9, RamShutdownMode, ());
246
251__swi_begin(0x8251)
253__swi_end(0x8251, RamSizeOfPart, ());
254
259__swi_begin(0x8252)
262
267__swi_begin(0x8256)
270
275__swi_begin(0x8257)
278
284__swi_begin(0x80DB)
287
291__swi_begin(0x03D)
292void editOrNewTXTModule(const char *file)
293__swi_end(0x03D, editOrNewTXTModule, (file));
294
299__swi_begin(0x055)
301__swi_end(0x055, SwitchVibraOnOff, ());
302
309__swi_begin(0x07B)
310int GetProfileFilter(int profile_id)
311__swi_end(0x07B, GetProfileFilter, (profile_id));
312
322__swi_begin(0x350)
325
330__swi_begin(0x35B)
332__swi_end(0x35B, NU_Unprotect_2, ());
333
338__swi_begin(0x367)
341
346__swi_begin(0x368)
349
356__swi_begin(0x829C)
358__swi_end(0x829C, RamInputLanguage, ());
359
363
#define __swi_variadic_begin(number)
Definition doxygen.h:40
#define __swilib_begin
Definition doxygen.h:29
#define __swi_end(number, func, call)
Definition doxygen.h:33
#define __swi_variadic_end(number, func,...)
Definition doxygen.h:41
#define __swi_begin(number)
Definition doxygen.h:32
#define __swilib_end
Definition doxygen.h:30
GBS Timer.
Definition gbs.h:148
Drawing object.
Definition gui.h:345
uint16_t year
Year.
Definition legacy.h:34
uint16_t sec
Seconds.
Definition legacy.h:29
uint16_t hour
Hours.
Definition legacy.h:31
uint16_t month
Month (1-12)
Definition legacy.h:33
uint16_t min
Minutes.
Definition legacy.h:30
uint16_t day
Day of the month.
Definition legacy.h:32
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.
char * GetPaletteAdrByColorIndex_2(int index)
Get color from the phone theme.
void * RamCurrentTrack()
Pointer to the current track in MediaPlayer.
void DrwObj_SetColor_2(DRWOBJ *drwobj, const char *pen, const char *brush)
Set color to the DRWOBJ.
void LockSched_2(void)
Lock OS scheduler.
void UnlockSched_2(void)
Unlock OS scheduler.
int GetTimeFormat()
Get date&time format from settings.
void DrawImg_2(int x, int y, int picture)
Draw image from the PIT table.
int memcmp_2(const void *ptr1, const void *ptr2, size_t num)
Compare two blocks of memory.
WSHDR * AllocWS_2(int size)
Create new empty WSHDR.
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).
const char * RamNameOfReceivedOrSentFile()
Get size of the recevied or sent file.
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 * RamSizeOfPart()
Unknown.
void * RamAudioParamsAddr(void)
Pointer to the audio params (unknown).
void GeneralFuncF1_2(int cmd)
Request closing of the focused GUI.
int * RamIsNotOnMainscreen()
Check if the IDLE is NOT currently displayed.
int * RamIsSendingOrReceivingFileByBT()
Check if currently sending or receiving file by BT.
void DrawRectangle_2(int x1, int y1, int x2, int y2, int flags, const char *pen, const char *brush)
Draw a rectangle.
int wsprintf_2(WSHDR *s, const char *format,...)
Write formatted output to WSHDR.
void editOrNewTXTModule(const char *file)
Unknown.
void NU_Unprotect_2(void)
char * RamInputLanguage()
Input language flags byte (historical address, not the language ID).
char * RamKeyBuffer(void)
Pointer to the current pressed key.
void NU_Restore_Interrupts_2(void)
void NU_Disable_History_Saving_2(void)
char * RamIsNumberTyping(void)
Check if user typing phone number.
void SwitchVibraOnOff(void)
Toggle vibration for the current profile.
RAM_DATETIME * RamDateTime()
Pointer to the current date and time.
void FreeWS_2(WSHDR *str)
Free WSHDR.
int IsTimerProc_2(GBSTMR *timer)
Check if timer is not yet expired.
int * RamSizeOfReceivedOrSentFile()
Get size of the recevied or sent file.
WSHDR * wstrcpy_2(WSHDR *destination, WSHDR *source)
Copy WSHDR.
void * RamShutdownMode()
Pointer to the state of the power on/off process (MSMONOFF).
void ClearMemory(void *ptr, int num)
Fill block of memory with zero.
void NU_Enable_History_Saving_2(void)
int GetProfileFilter(int profile_id)
Unknown.
RAM copy of the RTC calendar.
Definition legacy.h:28
Wide-string header.
Definition wstring.h:35
#define const
Definition zconf.h:115