diff options
author | Joerie de Gram <j.de.gram@gmail.com> | 2011-07-28 17:28:40 +0200 |
---|---|---|
committer | Joerie de Gram <j.de.gram@gmail.com> | 2011-07-28 17:45:37 +0200 |
commit | eb964932d2708ee1bae9bdae493a4cfc5e59da5d (patch) | |
tree | bbc626802de5bddf2fe68ceb64ec03f19a52be52 /include/sms.h | |
parent | 6e47b9ecdbe6732482123073aebea221b674917f (diff) | |
download | external_libsamsung-ipc-eb964932d2708ee1bae9bdae493a4cfc5e59da5d.zip external_libsamsung-ipc-eb964932d2708ee1bae9bdae493a4cfc5e59da5d.tar.gz external_libsamsung-ipc-eb964932d2708ee1bae9bdae493a4cfc5e59da5d.tar.bz2 |
Cleanup, preliminary calling/sms support
Diffstat (limited to 'include/sms.h')
-rw-r--r-- | include/sms.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/include/sms.h b/include/sms.h new file mode 100644 index 0000000..b7c3154 --- /dev/null +++ b/include/sms.h @@ -0,0 +1,60 @@ +/** + * This file is part of libmsm-h1. + * + * Copyright (C) 2010-2011 Joerie de Gram <j.de.gram@gmail.com> + * + * libmsm-h1 is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * libmsm-h1 is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with libmsm-h1. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#ifndef __SMS_H__ +#define __SMS_H__ + +#define MSM_SMS_SEND_MSG 0x0401 +#define MSM_SMS_INCOMING_MSG 0x0402 +#define MSM_SMS_READ_MSG 0x0403 +#define MSM_SMS_SAVE_MSG 0x0404 +#define MSM_SMS_DEL_MSG 0x0405 +#define MSM_SMS_DELIVER_REPORT 0x0406 +#define MSM_SMS_DEVICE_READY 0x0407 +#define MSM_SMS_SEL_MEM 0x0408 +#define MSM_SMS_STORED_MSG_COUNT 0x0409 +#define MSM_SMS_SVC_CENTER_ADDR 0x040A +#define MSM_SMS_SVC_OPTION 0x040B +#define MSM_SMS_MEM_STATUS 0x040C +#define MSM_SMS_CBS_MSG 0x040D +#define MSM_SMS_CBS_CONFIG 0x040E +#define MSM_SMS_STORED_MSG_STATUS 0x040F +#define MSM_SMS_PARAM_COUNT 0x0410 +#define MSM_SMS_PARAM 0x0411 + +#define MSM_SMS_MSG_MULTIPLE 1 +#define MSM_SMS_MSG_SINGLE 2 + +#define MSM_SMS_TYPE_POINT_TO_POINT 1 +#define MSM_SMS_TYPE_STATUS_REPORT 2 + +struct msm_sms_send_msg { + unsigned char hint, length; +} __attribute__((__packed__)); + +struct msm_sms_incoming_msg { + unsigned char type, unk, length; +} __attribute__((__packed__)); + +void msm_sms_send_msg(unsigned char *data, unsigned char length, int request_id); +void msm_sms_deliver_report(int request_id); + +#endif + |