#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <termios.h>#include <stdio.h>#include <string.h>#include <unistd.h>#include <syslog.h>#include "../../ut.h"#include "libsms_charset.h"#include "libsms_modem.h"#include "libsms_sms.h"#include "sms_funcs.h"

Go to the source code of this file.
Defines | |
| #define | set_date(_date, _Pointer) |
| #define | set_time(_time, _Pointer) |
Functions | |
| int | cds2sms (struct incame_sms *sms, struct modem *mdm, char *s, int s_len) |
| int | check_memory (struct modem *mdm, int flag) |
| static int | decode_pdu (struct modem *mdm, char *pdu, struct incame_sms *sms) |
| static void | deletesms (struct modem *mdm, int sim) |
| static int | fetchsms (struct modem *mdm, int sim, char *pdu) |
| int | getsms (struct incame_sms *sms, struct modem *mdm, int sim) |
| static int | octet2bin (char *octet) |
| static int | pdu2ascii (char *pdu, char *ascii) |
| static int | pdu2binary (char *pdu, char *binary) |
| static int | split_type_0 (char *Pointer, struct incame_sms *sms) |
| static int | split_type_2 (char *position, struct incame_sms *sms) |
| static int | splitascii (struct modem *mdm, char *source, struct incame_sms *sms) |
| static int | splitpdu (struct modem *mdm, char *pdu, struct incame_sms *sms) |
| #define set_date | ( | _date, | |||
| _Pointer | ) |
| #define set_time | ( | _time, | |||
| _Pointer | ) |
| int cds2sms | ( | struct incame_sms * | sms, | |
| struct modem * | mdm, | |||
| char * | s, | |||
| int | s_len | |||
| ) |
Definition at line 512 of file libsms_getsms.c.
References decode_pdu(), and LM_ERR.
Referenced by check_cds_report().
| int check_memory | ( | struct modem * | mdm, | |
| int | flag | |||
| ) |
Definition at line 215 of file libsms_getsms.c.
References checkmodem(), LM_ERR, LM_WARN, put_command(), str2s(), and USED_MEM.
Referenced by modem_process().
| static int decode_pdu | ( | struct modem * | mdm, | |
| char * | pdu, | |||
| struct incame_sms * | sms | |||
| ) | [inline, static] |
Definition at line 466 of file libsms_getsms.c.
References LM_ERR, modem::mode, MODE_ASCII, MODE_DIGICOM, splitascii(), and splitpdu().
| static void deletesms | ( | struct modem * | mdm, | |
| int | sim | |||
| ) | [static] |
Definition at line 201 of file libsms_getsms.c.
References LM_DBG, and put_command().
Referenced by getsms().
| static int fetchsms | ( | struct modem * | mdm, | |
| int | sim, | |||
| char * | pdu | |||
| ) | [static] |
Definition at line 137 of file libsms_getsms.c.
References LM_DBG, modem::mode, MODE_DIGICOM, put_command(), and str2s().
Referenced by getsms().
| int getsms | ( | struct incame_sms * | sms, | |
| struct modem * | mdm, | |||
| int | sim | |||
| ) |
Definition at line 488 of file libsms_getsms.c.
References decode_pdu(), deletesms(), fetchsms(), and LM_ERR.
Referenced by modem_process().
| static int octet2bin | ( | char * | octet | ) | [inline, static] |
Definition at line 56 of file libsms_getsms.c.
Referenced by pdu2ascii(), pdu2binary(), split_type_0(), split_type_2(), and splitpdu().
| static int pdu2ascii | ( | char * | pdu, | |
| char * | ascii | |||
| ) | [static] |
Definition at line 77 of file libsms_getsms.c.
References octet2bin(), and sms2ascii().
Referenced by split_type_0().
| static int pdu2binary | ( | char * | pdu, | |
| char * | binary | |||
| ) | [static] |
Definition at line 119 of file libsms_getsms.c.
References octet2bin().
Referenced by split_type_0().
| static int split_type_0 | ( | char * | Pointer, | |
| struct incame_sms * | sms | |||
| ) | [static] |
Definition at line 331 of file libsms_getsms.c.
References incame_sms::ascii, incame_sms::date, octet2bin(), pdu2ascii(), pdu2binary(), incame_sms::sender, set_date, set_time, swapchars(), incame_sms::time, and incame_sms::userdatalength.
Referenced by splitpdu().
| static int split_type_2 | ( | char * | position, | |
| struct incame_sms * | sms | |||
| ) | [static] |
Definition at line 364 of file libsms_getsms.c.
References incame_sms::ascii, incame_sms::date, DATE_LEN, octet2bin(), incame_sms::sender, set_date, set_time, incame_sms::sms_id, swapchars(), incame_sms::time, TIME_LEN, and incame_sms::userdatalength.
Referenced by splitpdu().
| static int splitascii | ( | struct modem * | mdm, | |
| char * | source, | |||
| struct incame_sms * | sms | |||
| ) | [static] |
Definition at line 274 of file libsms_getsms.c.
References incame_sms::ascii, incame_sms::date, incame_sms::name, incame_sms::sender, incame_sms::time, and incame_sms::userdatalength.
Referenced by decode_pdu().
| static int splitpdu | ( | struct modem * | mdm, | |
| char * | pdu, | |||
| struct incame_sms * | sms | |||
| ) | [static] |
Definition at line 405 of file libsms_getsms.c.
References incame_sms::is_statusreport, modem::mode, MODE_OLD, incame_sms::name, octet2bin(), incame_sms::smsc, split_type_0(), split_type_2(), and swapchars().
Referenced by decode_pdu().
1.5.6