diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-09-01 14:47:23 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-09-01 14:47:23 +0200 |
commit | 0c33d964e0c14c0af80f830a3b1837597ddcd034 (patch) | |
tree | b64c44a78f0890ff9f7af782102c563bb65d3d11 /include | |
parent | 736c6de37890f42261052de244385a07dfa1d17f (diff) | |
download | external_libsamsung-ipc-0c33d964e0c14c0af80f830a3b1837597ddcd034.zip external_libsamsung-ipc-0c33d964e0c14c0af80f830a3b1837597ddcd034.tar.gz external_libsamsung-ipc-0c33d964e0c14c0af80f830a3b1837597ddcd034.tar.bz2 |
sms: Save/del structures and related values
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'include')
-rw-r--r-- | include/sms.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/sms.h b/include/sms.h index e75d33d..6f92f1b 100644 --- a/include/sms.h +++ b/include/sms.h @@ -62,6 +62,11 @@ #define IPC_SMS_TYPE_STATUS_REPORT 0x02 #define IPC_SMS_TYPE_OUTGOING 0x02 +#define IPC_SMS_STATUS_REC_UNREAD 0x01 +#define IPC_SMS_STATUS_REC_READ 0x02 +#define IPC_SMS_STATUS_STO_UNSENT 0x03 +#define IPC_SMS_STATUS_STO_SENT 0x04 + /* * Structures */ @@ -105,6 +110,34 @@ struct ipc_sms_deliver_report_response { unsigned short error; } __attribute__((__packed__)); +struct ipc_sms_del_msg_request_data { + unsigned char unknown; // This is usually set to 0x02 + unsigned short index; +} __attribute__((__packed__)); + +struct ipc_sms_del_msg_response_data { + unsigned char unknown; // This is usually set to 0x02 + unsigned short error; + unsigned short index; +} __attribute__((__packed__)); + +struct ipc_sms_save_msg_request_data { + unsigned char unknown; // This is usually set to 0x02 + unsigned short index; // This is usually set to 0x0B + unsigned char status; + unsigned char length; // Total SMSC+PDU length +} __attribute__((__packed__)); + +struct ipc_sms_save_msg_response_data { + unsigned char unknown; // This is usually set to 0x02 + unsigned short error; + unsigned short index; +} __attribute__((__packed__)); + +/* + * Helpers + */ + unsigned char *ipc_sms_send_msg_pack(struct ipc_sms_send_msg_request *msg, char *smsc, unsigned char *pdu, int length); |