Gammu internals
1.38.0
|
#include <gammu-config.h>
#include <gammu-info.h>
#include "gsmphones.h"
#include "gsmstate.h"
#include "debug.h"
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include "../helper/string.h"
Go to the source code of this file.
Data Structures | |
struct | GSM_FeatureName |
Macros | |
#define | MAX_FEATURE_NAME_LEN 20 |
Functions | |
const char * | GSM_FeatureToString (GSM_Feature feature) |
GSM_Feature | GSM_FeatureFromString (const char *feature) |
GSM_Error | GSM_SetFeatureString (GSM_Feature *list, const char *string) |
GSM_PhoneModel * | GetModelData (GSM_StateMachine *s, const char *model, const char *number, const char *irdamodel) |
gboolean | GSM_IsPhoneFeatureAvailable (GSM_PhoneModel *model, GSM_Feature feature) |
gboolean | GSM_AddPhoneFeature (GSM_PhoneModel *model, GSM_Feature feature) |
Variables | |
GSM_FeatureName | AllFeatureNames [] |
GSM_PhoneModel | allmodels [] |
Phone features database.
Definition in file gsmphones.c.
#define MAX_FEATURE_NAME_LEN 20 |
Definition at line 24 of file gsmphones.c.
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().
GSM_FeatureName AllFeatureNames[] |
Definition at line 31 of file gsmphones.c.
GSM_PhoneModel allmodels[] |
Flags needed for various phone models.
Definition at line 207 of file gsmphones.c.