blob: 0d346a6dde306158e6e20290f2db3da1294a84a1 [file] [log] [blame]
b.liu4e243dc2023-11-27 11:20:00 +08001#ifndef LYNQ_SMS_H
2#define LYNQ_SMS_H 1
3#ifdef __cplusplus
4extern "C" {
5#endif
6
7#define MIN_MSM_PARAM_NUM 4
8#define MIN_IMS_MSM_PARAM_NUM 6
9#define MIN_WRITE_MSM_PARAM_NUM 5
10#define MSG_MAX_LEN 1024
11#define TELEPHONE_NUM_LEN 64
12#define STORAGE_SMS_MAX_SIZE 128
13#define SMSC_MAX_LEN 22
14#define SMS_NUM_MAX 255
15
16int lynq_sms_init(int uToken);
17int lynq_sms_deinit(void);
18int lynq_send_sms(char telephony_num[TELEPHONE_NUM_LEN], int charset, char *msg, int msglen);
19int lynq_read_sms(int index,int *status,int *charset,char smsc[SMSC_MAX_LEN],int *smscLen,int *smslen,char message[MSG_MAX_LEN],char teleNum[TELEPHONE_NUM_LEN],int *numLen,int *current,int *total);
20int lynq_get_smsc_address(char service_num[SMSC_MAX_LEN]);
21int lynq_set_smsc_address(const char* service_num);
22int lynq_list_sms(char index_list[SMS_NUM_MAX]);
23int lynq_delete_sms(int index);
24int lynq_wait_receive_new_sms(int *handle);
25#ifdef __cplusplus
26}
27#endif
28#endif