Gammu internals
1.38.0
|
Go to the source code of this file.
Macros | |
#define | COMMIT_FLAG "" |
#define | CHARS_PER_LINE (16) |
Functions | |
void | dbg_write (GSM_Debug_Info *d, const char *text) |
int | dbg_vprintf (GSM_Debug_Info *d, const char *format, va_list argp) |
GSM_Error | GSM_SetDebugFileDescriptor (FILE *fd, gboolean closable, GSM_Debug_Info *privdi) |
GSM_Error | GSM_SetDebugFile (const char *info, GSM_Debug_Info *privdi) |
GSM_Error | GSM_SetDebugFunction (GSM_Log_Function info, void *data, GSM_Debug_Info *privdi) |
gboolean | GSM_SetDebugLevel (const char *info, GSM_Debug_Info *privdi) |
gboolean | GSM_SetDebugCoding (const char *info, GSM_Debug_Info *privdi) |
gboolean | GSM_SetDebugGlobal (gboolean info, GSM_Debug_Info *privdi) |
int | smfprintf (GSM_Debug_Info *d, const char *format,...) |
int | smprintf (GSM_StateMachine *s, const char *format,...) |
int | smprintf_level (GSM_StateMachine *s, GSM_DebugSeverity severity, const char *format,...) |
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) |
Variables | |
GSM_Debug_Info | GSM_none_debug |
GSM_Debug_Info | GSM_global_debug |
#define CHARS_PER_LINE (16) |
Definition at line 311 of file debug.c.
Referenced by DumpMessage().
#define COMMIT_FLAG "" |
Definition at line 15 of file debug.c.
Referenced by GSM_SetDebugFile().
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 dbg_write | ( | GSM_Debug_Info * | d, |
const char * | text | ||
) |
Actually writes message to debuging file.
Definition at line 47 of file debug.c.
References _GSM_Debug_Info::df, _GSM_Debug_Info::log_function, PRINTF_STYLE, and _GSM_Debug_Info::user_data.
Referenced by dbg_vprintf().
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().