#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 "sms_funcs.h"#include "libsms_charset.h"#include "libsms_modem.h"

Go to the source code of this file.
Functions | |
| int | ascii2pdu (char *ascii, int asciiLength, char *pdu, int cs_convert) |
| int | binary2pdu (char *binary, int length, char *pdu) |
| int | fetch_sms_id (char *answer) |
| int | make_pdu (struct sms_msg *msg, struct modem *mdm, char *pdu) |
| int | putsms (struct sms_msg *sms_messg, struct modem *mdm) |
| void | swapchars (char *string, int len) |
Variables | |
| static char | hexa [16] |
| int | sms_report_type |
| int ascii2pdu | ( | char * | ascii, | |
| int | asciiLength, | |||
| char * | pdu, | |||
| int | cs_convert | |||
| ) |
Definition at line 54 of file libsms_putsms.c.
References ascii2sms(), and hexa.
Referenced by make_pdu().
| int binary2pdu | ( | char * | binary, | |
| int | length, | |||
| char * | pdu | |||
| ) |
| int fetch_sms_id | ( | char * | answer | ) | [inline] |
Definition at line 117 of file libsms_putsms.c.
References ascii2pdu(), _str::len, modem::mode, MODE_OLD, NO_REPORT, _str::s, sms_report_type, swapchars(), sms_msg::text, and sms_msg::to.
Referenced by putsms().
Definition at line 187 of file libsms_putsms.c.
References checkmodem(), fetch_sms_id(), _str::len, LM_ERR, LM_WARN, make_pdu(), modem::mode, MODE_ASCII, MODE_OLD, NO_REPORT, put_command(), modem::retry, _str::s, sms_report_type, sms_msg::text, and sms_msg::to.
Referenced by send_as_sms().
| void swapchars | ( | char * | string, | |
| int | len | |||
| ) |
Definition at line 36 of file libsms_putsms.c.
Referenced by make_pdu(), split_type_0(), split_type_2(), and splitpdu().
char hexa[16] [static] |
Initial value:
{
'0','1','2','3','4','5','6','7',
'8','9','A','B','C','D','E','F'
}
Definition at line 30 of file libsms_putsms.c.
Referenced by ascii2pdu(), and binary2pdu().
| int sms_report_type |
Definition at line 28 of file libsms_putsms.c.
1.5.6