19 #include "../../gsmstate.h" 21 #if defined(GSM_ENABLE_S60) 27 #include "../../gsmcomon.h" 32 int MsgLength,
int MsgType)
34 unsigned char *buffer=NULL;
35 int pos, sent, length, buflen, bufpos;
45 buffer = (
unsigned char *)malloc(buflen);
61 length = MsgLength - pos;
63 bufpos = snprintf(buffer, buflen,
"%d%c", MsgType,
NUM_END_HEADER);
64 memcpy(buffer + bufpos, MsgBuffer + pos, length);
65 buffer[bufpos + length] =
'\n';
void GSM_DumpMessageBinary(GSM_StateMachine *s, unsigned const char *message, size_t messagesize, int type)
struct GSM_Protocol::@1 Data
int(* WriteDevice)(GSM_StateMachine *s, const void *buf, size_t nbytes)
GSM_Device_Functions * Functions
GSM_Phone_Functions * Functions
#define NUM_PARTIAL_MESSAGE
GSM_Error(* DispatchMessage)(GSM_StateMachine *s)
GSM_Protocol_Message * RequestMsg
void GSM_DumpMessageText(GSM_StateMachine *s, unsigned const char *message, size_t messagesize, int type)