Gammu internals
1.38.0
|
#include <gsmreply.h>
Data Fields | |
GSM_Error(* | Function )(GSM_Protocol_Message *msg, GSM_StateMachine *s) |
const unsigned char * | msgtype |
const size_t | subtypechar |
const int | subtype |
const GSM_Phone_RequestID | requestID |
Structure for defining reply functions.
Function is called when requestID matches current operation or is ID_IncomingFrame and msgtype matches start message and (if msgtype is just one character) subtypechar is zero or subtypechar-th character of message matches subtype.
Should be used in array with last element containing ID_None as requestID.
Definition at line 227 of file gsmreply.h.
GSM_Error(* GSM_Reply_Function::Function) (GSM_Protocol_Message *msg, GSM_StateMachine *s) |
Pointer to function that should be executed.
Definition at line 231 of file gsmreply.h.
Referenced by GSM_DispatchMessage().
const unsigned char* GSM_Reply_Function::msgtype |
Message type, if it is longer than 1 character, it disables subtype checking.
Definition at line 236 of file gsmreply.h.
const GSM_Phone_RequestID GSM_Reply_Function::requestID |
Phone request when this can be called, use ID_IncomingFrame when you want to use this in any state.
Definition at line 250 of file gsmreply.h.
const int GSM_Reply_Function::subtype |
Subtype to be checked.
Definition at line 245 of file gsmreply.h.
Referenced by CheckReplyFunctions().
const size_t GSM_Reply_Function::subtypechar |
Which character of message should be checked as subtype. Zero to disable subtype checking.
Definition at line 241 of file gsmreply.h.
Referenced by CheckReplyFunctions().