Gammu internals
1.38.0
|
Go to the source code of this file.
Data Structures | |
struct | _GSM_Debug_Info |
Macros | |
#define | dbgprintf |
Enumerations | |
enum | Debug_Level { DL_NONE = 0, DL_BINARY = 1, DL_TEXT, DL_TEXTALL, DL_TEXTERROR, DL_TEXTDATE, DL_TEXTALLDATE, DL_TEXTERRORDATE } |
enum | GSM_DebugSeverity { D_NONE, D_TEXT, D_ERROR } |
Functions | |
void | DumpMessage (GSM_Debug_Info *d, const unsigned char *message, const size_t messagesize) |
void | DumpMessageText (GSM_Debug_Info *d, const unsigned char *message, const size_t messagesize) |
int | smfprintf (GSM_Debug_Info *d, const char *format,...) |
int | dbg_vprintf (GSM_Debug_Info *d, const char *format, va_list argp) |
int | smprintf_level (GSM_StateMachine *s, GSM_DebugSeverity severity, const char *format,...) |
Variables | |
GSM_Debug_Info | GSM_global_debug |
GSM_Debug_Info | GSM_none_debug |
enum Debug_Level |
Debugging level.
Definition at line 23 of file debug.h.
enum GSM_DebugSeverity |
Severity of printed message.
Enumerator | |
---|---|
D_NONE | Message will not be printed. |
D_TEXT | Message is printed in all text log levels. |
D_ERROR | Message is printed on all text error log levels. |
int dbg_vprintf | ( | GSM_Debug_Info * | d, |
const char * | format, | ||
va_list | argp | ||
) |
Definition at line 57 of file debug.c.
References GSM_DateTime::Day, DayOfWeek(), dbg_write(), DL_NONE, DL_TEXTALLDATE, DL_TEXTDATE, DL_TEXTERRORDATE, FALSE, GSM_GetCurrentDateTime(), GSM_DateTime::Hour, GSM_DateTime::Minute, GSM_DateTime::Month, GSM_DateTime::Second, TRUE, and GSM_DateTime::Year.
Referenced by smfprintf(), smprintf(), and smprintf_level().
void DumpMessage | ( | GSM_Debug_Info * | d, |
const unsigned char * | message, | ||
const size_t | messagesize | ||
) |
Definition at line 314 of file debug.c.
References CHARS_PER_LINE, and smfprintf().
Referenced by DumpMessageText(), GSM_DecodeMMSIndication(), GSM_DispatchMessage(), GSM_DumpMessageText_Custom(), GSM_EncodeEMSMultiPartSMS(), GSM_EncodeMultiPartSMS(), and N71_65_DecodePhonebook().
void DumpMessageText | ( | GSM_Debug_Info * | d, |
const unsigned char * | message, | ||
const size_t | messagesize | ||
) |
Definition at line 371 of file debug.c.
References _GSM_Debug_Info::dl, DL_TEXTALL, DL_TEXTALLDATE, and DumpMessage().
Referenced by DecodeDefault(), EncodeDefault(), GSM_DecodePDUFrame(), GSM_DecodeSMSFrameText(), GSM_DecodeUDHHeader(), and GSM_EncodeSMSFrameText().
int smfprintf | ( | GSM_Debug_Info * | d, |
const char * | format, | ||
... | |||
) |
Definition at line 240 of file debug.c.
References dbg_vprintf(), GSM_global_debug, and PRINTF_STYLE.
Referenced by DumpMessage(), GSM_AddSMS_Text_UDH(), GSM_DecodeEMSMultiPartSMS(), GSM_DecodeMMSFileToMultiPart(), GSM_DecodeNokiaProfile(), GSM_DecodePDUFrame(), GSM_DecodeSiemensOTASMS(), GSM_DecodeSMSDateTime(), GSM_DecodeSMSFrame(), GSM_DecodeSMSFrameText(), GSM_DecodeSMSStatusReportData(), GSM_DecodeUDHHeader(), GSM_DecodeVCAL_RRULE(), GSM_DecodeVCALENDAR_VTODO(), GSM_EncodeEMSMultiPartSMS(), GSM_EncodeMultiPartSMS(), GSM_EncodeSMSDateTime(), GSM_EncodeSMSFrame(), GSM_EncodeSMSFrameText(), GSM_EncodeUDHHeader(), GSM_EncodeVCARD(), GSM_Find_Free_Used_SMS2(), GSM_GetCalendarRecurranceRepeat(), GSM_GetMessageCoding(), GSM_LinkSMS(), GSM_MakeMultiPartSMS(), GSM_SetCalendarRecurranceRepeat(), GSM_SetFeatureString(), and GSM_UnpackSemiOctetNumber().
GSM_Debug_Info GSM_global_debug |
Definition at line 33 of file debug.c.
Referenced by DecodeDefault(), DecodeUnicodeConsole(), EncodeDefault(), GSM_EncodeEMSMultiPartSMS(), GSM_GetDI(), GSM_GetGlobalDebug(), and smfprintf().
GSM_Debug_Info GSM_none_debug |
Definition at line 22 of file debug.c.
Referenced by GSM_InitConnection(), and GSM_InitConnection_Log().