Gammu internals
1.38.0
|
Go to the source code of this file.
Macros | |
#define | MAX(a, b) ((a)>(b) ? (a) : (b)) |
#define | MIN(a, b) ((a)<(b) ? (a) : (b)) |
#define | GSM_GNUC_PREREQ(maj, min) 0 |
#define | PRINTF_STYLE(f, a) |
#define | SCANF_STYLE(f, a) |
#define | WARNUNUSED |
#define | UNUSED |
#define | NORETURN |
#define | __FUNCTION__WORKING |
Functions | |
size_t | GetLine (FILE *File, char *Line, int count) |
const char * | GetGammuVersion (void) |
const char * | GetCompiler (void) |
const char * | GetOS (void) |
const char * | GetGammuLocalePath (void) |
void | GSM_InitLocales (const char *path) |
void | EncodeHexBin (char *dest, const unsigned char *src, size_t len) |
gboolean | GSM_IsNewerVersion (const char *latest_version, const char *current_version) |
GSM_Error | GSM_SetPower (GSM_StateMachine *s, gboolean on) |
Miscellaneous helper functions.
Definition in file gammu-misc.h.
#define __FUNCTION__WORKING |
Definition at line 128 of file gammu-misc.h.
#define GSM_GNUC_PREREQ | ( | maj, | |
min | |||
) | 0 |
Definition at line 84 of file gammu-misc.h.
#define MAX | ( | a, | |
b | |||
) | ((a)>(b) ? (a) : (b)) |
Definition at line 68 of file gammu-misc.h.
Referenced by PHONE_FindDataFile().
#define MIN | ( | a, | |
b | |||
) | ((a)<(b) ? (a) : (b)) |
Definition at line 70 of file gammu-misc.h.
Referenced by GSM_EncodeSMSFrameText(), N71_65_EncodePhonebookFrame(), and VC_StoreBase64().
#define NORETURN |
Definition at line 111 of file gammu-misc.h.
#define PRINTF_STYLE | ( | f, | |
a | |||
) |
Definition at line 92 of file gammu-misc.h.
Referenced by dbg_write(), GSM_IdentifyFileFormat(), GSM_SetDebugGlobal(), smfprintf(), smprintf(), and VC_StoreLine().
#define SCANF_STYLE | ( | f, | |
a | |||
) |
Definition at line 93 of file gammu-misc.h.
#define UNUSED |
Definition at line 105 of file gammu-misc.h.
Referenced by NOKIA_EncodeDateTime().
#define WARNUNUSED |
Definition at line 99 of file gammu-misc.h.
void EncodeHexBin | ( | char * | dest, |
const unsigned char * | src, | ||
size_t | len | ||
) |
Encodes text to hexadecimal binary representation.
Definition at line 426 of file coding.c.
References EncodeWithHexBinAlphabet().
Referenced by EncodeHexUnicode().
const char* GetCompiler | ( | void | ) |
Gets compiler which was used to compile Gammu library.
const char* GetGammuLocalePath | ( | void | ) |
const char* GetGammuVersion | ( | void | ) |
size_t GetLine | ( | FILE * | File, |
char * | Line, | ||
int | count | ||
) |
Reads single line from file.
File | File descriptor to read from. |
Line | Buffer where t ostore result. |
count | Maximal length of text which can be stored in buffer. |
const char* GetOS | ( | void | ) |
Gets host OS.
Definition at line 537 of file misc.c.
Referenced by GSM_InitConnection_Log().
void GSM_InitLocales | ( | const char * | path | ) |
Initializes locales. This sets up things needed for proper string conversion from local charset as well as initializes gettext based translation.
path | Path to gettext translation. If NULL compiled in default is used. |
gboolean GSM_IsNewerVersion | ( | const char * | latest_version, |
const char * | current_version | ||
) |
GSM_Error GSM_SetPower | ( | GSM_StateMachine * | s, |
gboolean | on | ||
) |
Set Power On/Off the phone
s | State machine pointer. |
on | TRUE to power on the phone, FALSE to power off |
Power on/off the phone.
Definition at line 307 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetPower.