Gammu internals
1.38.0
|
Go to the source code of this file.
Functions | |
GSM_PhoneModel * | GetModelData (GSM_StateMachine *s, const char *model, const char *number, const char *irdamodel) |
GSM_Error | GSM_SetFeatureString (GSM_Feature *list, const char *string) |
Phone features database.
Definition in file gsmphones.h.
GSM_PhoneModel* GetModelData | ( | GSM_StateMachine * | s, |
const char * | model, | ||
const char * | number, | ||
const char * | irdamodel | ||
) |
Converts model string to model record record describing it's features. If state machine structure is provided, phone features can be overrided from current state machine configuration.
s | Pointer to state machine structure, can be NULL. |
model | Model name string, NULL if not to be searched. |
number | Model number string, NULL if not to be searched. |
irdamodel | IrDA model name string, NULL if not to be searched. |
Definition at line 1002 of file gsmphones.c.
References _GSM_StateMachine::CurrentConfig, GSM_PhoneModel::features, GSM_MAX_PHONE_FEATURES, and GSM_Config::PhoneFeatures.
Referenced by GSM_InitConnection_Log(), GSM_RegisterAllPhoneModules(), GSM_RegisterModule(), and NOKIA_EncodeDateTime().
GSM_Error GSM_SetFeatureString | ( | GSM_Feature * | list, |
const char * | string | ||
) |
Converts string to list of features.
list | Storage where features will be stored, needs to be long enough (GSM_MAX_PHONE_FEATURES + 1). |
string | String with features to be parsed, will be parsed using GSM_FeatureFromString. |
Definition at line 155 of file gsmphones.c.
References ERR_BADFEATURE, ERR_MOREMEMORY, ERR_NONE, ERR_UNKNOWN, GSM_FeatureFromString(), GSM_MAX_PHONE_FEATURES, and smfprintf().
Referenced by GSM_ReadConfig().