Gammu API
1.38.0
|
Typedefs | |
typedef struct _GSM_Debug_Info | GSM_Debug_Info |
Functions | |
GSM_Error | GSM_SetDebugFunction (GSM_Log_Function info, void *data, GSM_Debug_Info *privdi) |
GSM_Error | GSM_SetDebugFile (const char *info, GSM_Debug_Info *privdi) |
GSM_Error | GSM_SetDebugFileDescriptor (FILE *fd, gboolean closable, GSM_Debug_Info *privdi) |
GSM_Debug_Info * | GSM_GetGlobalDebug (void) |
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) |
void | GSM_LogError (GSM_StateMachine *s, const char *message, const GSM_Error err) |
int | smprintf (GSM_StateMachine *s, const char *format,...) |
Debuging handling.
typedef struct _GSM_Debug_Info GSM_Debug_Info |
Debugging configuration.
Definition at line 28 of file gammu-debug.h.
GSM_Debug_Info* GSM_GetGlobalDebug | ( | void | ) |
Returns global debug settings.
void GSM_LogError | ( | GSM_StateMachine * | s, |
const char * | message, | ||
const GSM_Error | err | ||
) |
Logs error to debug log with additional message.
s | State machine structure pointer. |
message | String to be show in message. |
err | Error code. |
gboolean GSM_SetDebugCoding | ( | const char * | info, |
GSM_Debug_Info * | privdi | ||
) |
Sets debug encoding.
info | Encoding to set. |
privdi | Pointer to debug information data. |
GSM_Error GSM_SetDebugFile | ( | const char * | info, |
GSM_Debug_Info * | privdi | ||
) |
Sets debug file.
info | File path. |
privdi | Pointer to debug information data. |
GSM_Error GSM_SetDebugFileDescriptor | ( | FILE * | fd, |
gboolean | closable, | ||
GSM_Debug_Info * | privdi | ||
) |
Sets debug file.
fd | File descriptor. |
privdi | Pointer to debug information data. |
closable | Whether Gammu can close the file when it is no longer needed for debug output. Please note that stderr or stdout are never closed. |
GSM_Error GSM_SetDebugFunction | ( | GSM_Log_Function | info, |
void * | data, | ||
GSM_Debug_Info * | privdi | ||
) |
Sets logging function.
info | Function to call. |
data | User data to pass as a second parameter to callback. |
privdi | Pointer to debug information data. |
gboolean GSM_SetDebugGlobal | ( | gboolean | info, |
GSM_Debug_Info * | privdi | ||
) |
Enables using of global debugging configuration. Makes no effect on global debug configuration.
info | Enable global debug usage.. |
privdi | Pointer to debug information data. |
gboolean GSM_SetDebugLevel | ( | const char * | info, |
GSM_Debug_Info * | privdi | ||
) |
Sets debug level.
info | Level as text. |
privdi | Pointer to debug information data. |
int smprintf | ( | GSM_StateMachine * | s, |
const char * | format, | ||
... | |||
) |
Prints string to defined debug log.
s | State machine, where to print. |
format | Format string as for printf. |