Gammu internals  1.38.0
CB messages
Collaboration diagram for CB messages:

Data Structures

struct  GSM_CBMessage
 

Functions

GSM_Error GSM_SetIncomingCB (GSM_StateMachine *s, gboolean enable)
 

Detailed Description

Cell broadcast messages manipulations.

Function Documentation

§ GSM_SetIncomingCB()

GSM_Error GSM_SetIncomingCB ( GSM_StateMachine s,
gboolean  enable 
)

Gets network information from phone.

Parameters
sState machine pointer.
[in]enableWhether to enable notifications.
Returns
Error code.

Gets network information from phone.

Definition at line 793 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetIncomingCB.

794 {
795  GSM_Error err;
796 
798 
799  err = s->Phone.Functions->SetIncomingCB(s, enable);
800  PRINT_LOG_ERROR(err);
801  return err;
802 }
GSM_Error
Definition: gammu-error.h:23
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Error(* SetIncomingCB)(GSM_StateMachine *s, gboolean enable)
Definition: gsmstate.h:979
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373