Gammu internals  1.38.0
GSM_Reply_Function Struct Reference

#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
 

Detailed Description

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.

Field Documentation

§ Function

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().

§ msgtype

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.

§ requestID

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.

§ subtype

const int GSM_Reply_Function::subtype

Subtype to be checked.

Definition at line 245 of file gsmreply.h.

Referenced by CheckReplyFunctions().

§ subtypechar

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().


The documentation for this struct was generated from the following file: