Gammu internals
1.38.0
|
Typedefs | |
typedef void(* | IncomingCallCallback) (GSM_StateMachine *s, GSM_Call *call, void *user_data) |
typedef void(* | IncomingSMSCallback) (GSM_StateMachine *s, GSM_SMSMessage *sms, void *user_data) |
typedef void(* | IncomingCBCallback) (GSM_StateMachine *s, GSM_CBMessage *cb, void *user_data) |
typedef void(* | IncomingUSSDCallback) (GSM_StateMachine *s, GSM_USSDMessage *ussd, void *user_data) |
typedef void(* | SendSMSStatusCallback) (GSM_StateMachine *s, int status, int MessageReference, void *user_data) |
Functions | |
void | GSM_SetIncomingCallCallback (GSM_StateMachine *s, IncomingCallCallback callback, void *user_data) |
void | GSM_SetIncomingSMSCallback (GSM_StateMachine *s, IncomingSMSCallback callback, void *user_data) |
void | GSM_SetIncomingCBCallback (GSM_StateMachine *s, IncomingCBCallback callback, void *user_data) |
void | GSM_SetIncomingUSSDCallback (GSM_StateMachine *s, IncomingUSSDCallback callback, void *user_data) |
void | GSM_SetSendSMSStatusCallback (GSM_StateMachine *s, SendSMSStatusCallback callback, void *user_data) |
Generic state machine callback layer.
typedef void(* IncomingCallCallback) (GSM_StateMachine *s, GSM_Call *call, void *user_data) |
Callback for incoming calls.
Definition at line 28 of file gammu-callback.h.
typedef void(* IncomingCBCallback) (GSM_StateMachine *s, GSM_CBMessage *cb, void *user_data) |
Callback for incoming cell broadcast.
Definition at line 44 of file gammu-callback.h.
typedef void(* IncomingSMSCallback) (GSM_StateMachine *s, GSM_SMSMessage *sms, void *user_data) |
Callback for incoming SMS.
Definition at line 36 of file gammu-callback.h.
typedef void(* IncomingUSSDCallback) (GSM_StateMachine *s, GSM_USSDMessage *ussd, void *user_data) |
Callback for icoming USSD.
Definition at line 52 of file gammu-callback.h.
typedef void(* SendSMSStatusCallback) (GSM_StateMachine *s, int status, int MessageReference, void *user_data) |
Callback for sending SMS.
Definition at line 60 of file gammu-callback.h.
void GSM_SetIncomingCallCallback | ( | GSM_StateMachine * | s, |
IncomingCallCallback | callback, | ||
void * | user_data | ||
) |
Sets callback for incoming calls.
s | State machine. |
callback | Pointer to callback function. |
user_data | Second parameter which will be passed to callback. |
Definition at line 1647 of file gsmstate.c.
References _GSM_User::IncomingCall, _GSM_User::IncomingCallUserData, and _GSM_StateMachine::User.
void GSM_SetIncomingCBCallback | ( | GSM_StateMachine * | s, |
IncomingCBCallback | callback, | ||
void * | user_data | ||
) |
Sets callback for incoming CB.
s | State machine. |
callback | Pointer to callback function. |
user_data | Second parameter which will be passed to callback. |
Definition at line 1659 of file gsmstate.c.
References _GSM_User::IncomingCB, _GSM_User::IncomingCBUserData, and _GSM_StateMachine::User.
void GSM_SetIncomingSMSCallback | ( | GSM_StateMachine * | s, |
IncomingSMSCallback | callback, | ||
void * | user_data | ||
) |
Sets callback for incoming SMSes.
s | State machine. |
callback | Pointer to callback function. |
user_data | Second parameter which will be passed to callback. |
Definition at line 1653 of file gsmstate.c.
References _GSM_User::IncomingSMS, _GSM_User::IncomingSMSUserData, and _GSM_StateMachine::User.
void GSM_SetIncomingUSSDCallback | ( | GSM_StateMachine * | s, |
IncomingUSSDCallback | callback, | ||
void * | user_data | ||
) |
Sets callback for incoming USSD.
s | State machine. |
callback | Pointer to callback function. |
user_data | Second parameter which will be passed to callback. |
Definition at line 1665 of file gsmstate.c.
References _GSM_User::IncomingUSSD, _GSM_User::IncomingUSSDUserData, and _GSM_StateMachine::User.
void GSM_SetSendSMSStatusCallback | ( | GSM_StateMachine * | s, |
SendSMSStatusCallback | callback, | ||
void * | user_data | ||
) |
Sets callback for sending SMS.
s | State machine. |
callback | Pointer to callback function. |
user_data | Second parameter which will be passed to callback. |
Definition at line 1671 of file gsmstate.c.
References _GSM_User::SendSMSStatus, _GSM_User::SendSMSStatusUserData, and _GSM_StateMachine::User.