Gammu internals  1.38.0
gammu-debug.h
Go to the documentation of this file.
1 
7 #ifndef __gammu_debug_h
8 #define __gammu_debug_h
9 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 #include <stdio.h>
20 
21 #include <gammu-error.h>
22 #include <gammu-misc.h>
23 
29 
41  GSM_Debug_Info * privdi);
42 
52 GSM_Error GSM_SetDebugFile(const char *info, GSM_Debug_Info * privdi);
53 
67  GSM_Debug_Info * privdi);
68 
77 
87 
99 
109 gboolean GSM_SetDebugLevel(const char *info, GSM_Debug_Info * privdi);
110 
120 gboolean GSM_SetDebugCoding(const char *info, GSM_Debug_Info * privdi);
121 
133 
143 void GSM_LogError(GSM_StateMachine * s, const char *message,
144  const GSM_Error err);
145 
155 PRINTF_STYLE(2, 3)
156 int smprintf(GSM_StateMachine * s, const char *format, ...);
157 
158 #ifdef __cplusplus
159 }
160 #endif
161 #endif
162 
163 /* Editor configuration
164  * vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
165  */
GSM_Error GSM_SetDebugFunction(GSM_Log_Function info, void *data, GSM_Debug_Info *privdi)
Definition: debug.c:179
GSM_Debug_Info * GSM_GetDI(GSM_StateMachine *s)
Definition: gsmstate.c:70
gboolean GSM_SetDebugCoding(const char *info, GSM_Debug_Info *privdi)
Definition: debug.c:227
GSM_Error
Definition: gammu-error.h:23
GSM_Error GSM_SetDebugFileDescriptor(FILE *fd, gboolean closable, GSM_Debug_Info *privdi)
Definition: debug.c:127
#define PRINTF_STYLE(f, a)
Definition: gammu-misc.h:92
void(* GSM_Log_Function)(const char *text, void *data)
gboolean GSM_SetDebugGlobal(gboolean info, GSM_Debug_Info *privdi)
Definition: debug.c:233
int gboolean
Definition: gammu-types.h:23
void GSM_LogError(GSM_StateMachine *s, const char *message, const GSM_Error err)
Definition: gsmcomon.c:221
GSM_Error GSM_SetDebugFile(const char *info, GSM_Debug_Info *privdi)
Definition: debug.c:144
GSM_Debug_Info * GSM_GetGlobalDebug(void)
Definition: gsmcomon.c:216
gboolean closable
Definition: debug.h:40
gboolean GSM_SetDebugLevel(const char *info, GSM_Debug_Info *privdi)
Definition: debug.c:186
int smprintf(GSM_StateMachine *s, const char *format,...)
Definition: debug.c:261
GSM_Debug_Info * GSM_GetDebug(GSM_StateMachine *s)
Definition: gsmstate.c:1719