comparison gsm-fw/g23m-gsm/sms/sms_tlp.c @ 765:75595941b786

sms_tlp.c compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 12 Oct 2014 00:19:57 +0000
parents 2f7df7a314f8
children
comparison
equal deleted inserted replaced
764:2d8cb1c85e01 765:75595941b786
18 | capability of the module Short Message Service. 18 | capability of the module Short Message Service.
19 +----------------------------------------------------------------------------- 19 +-----------------------------------------------------------------------------
20 */ 20 */
21 #ifndef SMS_TLP_C 21 #ifndef SMS_TLP_C
22 #define SMS_TLP_C 22 #define SMS_TLP_C
23 23
24 #include "config.h"
25 #include "fixedconf.h"
26 #include "condat-features.h"
27
24 #define ENTITY_SMS 28 #define ENTITY_SMS
25 29
26 /*==== INCLUDES ===================================================*/ 30 /*==== INCLUDES ===================================================*/
27 31
28 #include <string.h> 32 #include <string.h>
55 59
56 /*==== FUNCTIONS ==================================================*/ 60 /*==== FUNCTIONS ==================================================*/
57 61
58 /* Implements Measure# 7 */ 62 /* Implements Measure# 7 */
59 /* 63 /*
60 +----------------------------------------------------------------------------------+ 64 +------------------------------------------------------------------------------+
61 | PROJECT : GSM-PS (8410) MODULE : SMS_TLP | 65 | PROJECT : GSM-PS (8410) MODULE : SMS_TLP |
62 | STATE : code ROUTINE : tl_sim_rd_record_update_state | 66 | STATE : code ROUTINE : tl_sim_rd_record_update_state |
63 +----------------------------------------------------------------------------------+ 67 +------------------------------------------------------------------------------+
64 68
65 PURPOSE : This routine process primitive SIM_READ_RECORD_CONF for the 69 PURPOSE : This routine process primitive SIM_READ_RECORD_CONF for the
66 cases MMI_FIND_FIRST and MMI_FIND_NEXT 70 cases MMI_FIND_FIRST and MMI_FIND_NEXT
67 71
68 */ 72 */
95 } 99 }
96 sms_data->stored_mmi_state = MMI_IDLE; 100 sms_data->stored_mmi_state = MMI_IDLE;
97 101
98 return FALSE; 102 return FALSE;
99 } 103 }
100
101 104
102 105
103 /* 106 /*
104 +--------------------------------------------------------------------+ 107 +--------------------------------------------------------------------+
105 | PROJECT : GSM-PS (8410) MODULE : SMS_CP | 108 | PROJECT : GSM-PS (8410) MODULE : SMS_CP |
636 SMS_CAUSE_INV_INDEX); 639 SMS_CAUSE_INV_INDEX);
637 break; 640 break;
638 } 641 }
639 else 642 else
640 { 643 {
641 rec_num = delete_req->rec_num; 644 rec_num = delete_req->rec_num;
642 } 645 }
643 } 646 }
644 647
645 if (tl_get_status (&SMS_SIM_PROP(sms_data), rec_num-1) & 1) 648 if (tl_get_status (&SMS_SIM_PROP(sms_data), rec_num-1) & 1)
646 { 649 {
658 } 661 }
659 else 662 else
660 { 663 {
661 tl_mnsms_delete_cnf (delete_req->mem_type, rec_num, 0, SMS_CAUSE_INV_INDEX); 664 tl_mnsms_delete_cnf (delete_req->mem_type, rec_num, 0, SMS_CAUSE_INV_INDEX);
662 } 665 }
663
664 break; 666 break;
665 667
666 case MEM_SR: 668 case MEM_SR:
667 tl_mnsms_delete_cnf (delete_req->mem_type, delete_req->rec_num, 0, 669 tl_mnsms_delete_cnf (delete_req->mem_type, delete_req->rec_num, 0,
668 SMS_CAUSE_MEM_FAIL); 670 SMS_CAUSE_MEM_FAIL);
700 GLOBAL void tl_mnsms_read_cnf (UBYTE mem_type, 702 GLOBAL void tl_mnsms_read_cnf (UBYTE mem_type,
701 UBYTE record, 703 UBYTE record,
702 UBYTE *data, 704 UBYTE *data,
703 USHORT error) 705 USHORT error)
704 { 706 {
705 GET_INSTANCE_DATA; 707 GET_INSTANCE_DATA;
706 PALLOC (read_cnf, MNSMS_READ_CNF); /* T_MNSMS_READ_CNF */ 708 PALLOC (read_cnf, MNSMS_READ_CNF); /* T_MNSMS_READ_CNF */
707 709
708 read_cnf->mem_type = mem_type; 710 read_cnf->mem_type = mem_type;
709 read_cnf->rec_num = record; 711 read_cnf->rec_num = record;
710 switch (mem_type) 712 switch (mem_type)
1720 */ 1722 */
1721 1723
1722 LOCAL void tl_sim_update_rec_cnf_mmi ( 1724 LOCAL void tl_sim_update_rec_cnf_mmi (
1723 T_SIM_UPDATE_RECORD_CNF *update_cnf) 1725 T_SIM_UPDATE_RECORD_CNF *update_cnf)
1724 { 1726 {
1725 GET_INSTANCE_DATA; 1727 GET_INSTANCE_DATA;
1726 UBYTE next_rec_num=0,record; 1728 UBYTE next_rec_num=0,record;
1727 TRACE_FUNCTION ("tl_sim_update_rec_cnf_mmi()"); 1729 TRACE_FUNCTION ("tl_sim_update_rec_cnf_mmi()");
1728 1730
1729 record = sms_data->sms_sim_access_info[update_cnf->req_id].rec_num; 1731 record = sms_data->sms_sim_access_info[update_cnf->req_id].rec_num;
1730 sms_data->sms_sim_access_info[update_cnf->req_id].entry_used = FALSE; 1732 sms_data->sms_sim_access_info[update_cnf->req_id].entry_used = FALSE;
1951 1953
1952 */ 1954 */
1953 1955
1954 LOCAL void tl_sim_update_rec_cnf_net (T_SIM_UPDATE_RECORD_CNF *update_cnf) 1956 LOCAL void tl_sim_update_rec_cnf_net (T_SIM_UPDATE_RECORD_CNF *update_cnf)
1955 { 1957 {
1956 GET_INSTANCE_DATA; 1958 GET_INSTANCE_DATA;
1957 UBYTE record; 1959 UBYTE record;
1958 UBYTE data[SIZE_EF_SMS]; 1960 UBYTE data[SIZE_EF_SMS];
1959 1961
1960 TRACE_FUNCTION ("tl_sim_update_rec_cnf_net()"); 1962 TRACE_FUNCTION ("tl_sim_update_rec_cnf_net()");
1961 1963
2846 else 2848 else
2847 { 2849 {
2848 /*TR2M TIM EXPIRE -ACI NOT RESPONDED WITHIN TR2M */ 2850 /*TR2M TIM EXPIRE -ACI NOT RESPONDED WITHIN TR2M */
2849 } 2851 }
2850 break; 2852 break;
2851 2853
2852 default: 2854 default:
2853 /* INVALID SMS TL STATE IN MNSMS_OTA_MESSAGE_RES */ 2855 /* INVALID SMS TL STATE IN MNSMS_OTA_MESSAGE_RES */
2854 break; 2856 break;
2855 2857
2856 } 2858 }
2857 } 2859 }
2858 PFREE (mnsms_OTA_message_res); 2860 PFREE (mnsms_OTA_message_res);
2859 2861
2860 } 2862 }
2861 #endif /* End OTA */ 2863 #endif /* End OTA */
2862 /* 2864 /*
2863 +--------------------------------------------------------------------+ 2865 +--------------------------------------------------------------------+
2864 | PROJECT : GSM-PS (8410) MODULE : SMS_TLP | 2866 | PROJECT : GSM-PS (8410) MODULE : SMS_TLP |
2865 | STATE : code ROUTINE : tl_mnsms_retrans_req | 2867 | STATE : code ROUTINE : tl_mnsms_retrans_req |
2866 +--------------------------------------------------------------------+ 2868 +--------------------------------------------------------------------+
2867 2869
2868 PURPOSE : Handles the primitive MNSMS_RETRANS_REQ. This will support user 2870 PURPOSE : Handles the primitive MNSMS_RETRANS_REQ. This will support user
2869 requested retransmission of the last failed message as per 2871 requested retransmission of the last failed message as per
2870 23.040 R99 Section 9.2.3.6. 2872 23.040 R99 Section 9.2.3.6.