Lines Matching refs:rope
275 gsm_rope_add_timestamp( GsmRope rope, const SmsTimeStampRec* ts ) in gsm_rope_add_timestamp() argument
277 gsm_rope_add( rope, ts->data, 7 ); in gsm_rope_add_timestamp()
454 gsm_rope_add_address( GsmRope rope, const SmsAddressRec* addr ) in gsm_rope_add_address() argument
456 gsm_rope_add_c( rope, addr->len ); in gsm_rope_add_address()
457 gsm_rope_add_c( rope, addr->toa ); in gsm_rope_add_address()
458 gsm_rope_add( rope, addr->data, (addr->len+1)/2 ); in gsm_rope_add_address()
460 if (!rope->error && rope->data != NULL) in gsm_rope_add_address()
461 rope->data[ rope->pos-1 ] |= 0xf0; in gsm_rope_add_address()
835 GsmRope rope ) in sms_get_text_utf8() argument
874 if (rope != NULL) in sms_get_text_utf8()
876 bytes_t dst = gsm_rope_reserve( rope, count ); in sms_get_text_utf8()
886 if (rope != NULL) in sms_get_text_utf8()
888 bytes_t dst = gsm_rope_reserve( rope, count ); in sms_get_text_utf8()
918 GsmRopeRec rope[1]; in smspdu_get_text_message() local
932 if ( sms_get_text_utf8( &data, end, (mtiByte & 0x40), coding, rope ) < 0 ) in smspdu_get_text_message()
935 result = rope->pos; in smspdu_get_text_message()
940 memcpy( utf8, rope->data, utf8len ); in smspdu_get_text_message()
942 gsm_rope_done( rope ); in smspdu_get_text_message()
950 GsmRopeRec rope[1]; in smspdu_get_text_message() local
963 gsm_rope_init_alloc( rope, 0 ); in smspdu_get_text_message()
964 if ( sms_get_text_utf8( &data, end, (mtiByte & 0x40), coding, rope ) < 0 ) { in smspdu_get_text_message()
965 gsm_rope_done( rope ); in smspdu_get_text_message()
969 result = rope->pos; in smspdu_get_text_message()
974 memcpy( utf8, rope->data, utf8len ); in smspdu_get_text_message()
976 gsm_rope_done( rope ); in smspdu_get_text_message()
1096 gsm_rope_add_sms_user_header( GsmRope rope, in gsm_rope_add_sms_user_header() argument
1101 gsm_rope_add_c( rope, 0x05 ); /* total header length == 5 bytes */ in gsm_rope_add_sms_user_header()
1102 gsm_rope_add_c( rope, 0x00 ); /* element id: concatenated message reference number */ in gsm_rope_add_sms_user_header()
1103 gsm_rope_add_c( rope, 0x03 ); /* element len: 3 bytes */ in gsm_rope_add_sms_user_header()
1104 gsm_rope_add_c( rope, (byte_t)ref_number ); /* reference number */ in gsm_rope_add_sms_user_header()
1105 gsm_rope_add_c( rope, (byte_t)pdu_count ); /* max pdu index */ in gsm_rope_add_sms_user_header()
1106 gsm_rope_add_c( rope, (byte_t)pdu_index+1 ); /* current pdu index */ in gsm_rope_add_sms_user_header()
1111 gsm_rope_add_sms_deliver_pdu( GsmRope rope, in gsm_rope_add_sms_deliver_pdu() argument
1127 gsm_rope_add_c( rope, 0 ); /* no SC Address */ in gsm_rope_add_sms_deliver_pdu()
1128 gsm_rope_add_c( rope, mtiByte ); /* message type - SMS-DELIVER */ in gsm_rope_add_sms_deliver_pdu()
1129 gsm_rope_add_address( rope, sender_address ); in gsm_rope_add_sms_deliver_pdu()
1130 gsm_rope_add_c( rope, 0 ); /* protocol identifier */ in gsm_rope_add_sms_deliver_pdu()
1135 gsm_rope_add_c( rope, coding ); /* data coding scheme */ in gsm_rope_add_sms_deliver_pdu()
1136 gsm_rope_add_timestamp( rope, timestamp ); /* service center timestamp */ in gsm_rope_add_sms_deliver_pdu()
1154 gsm_rope_add_c( rope, count + headerSeptets ); in gsm_rope_add_sms_deliver_pdu()
1155 gsm_rope_add_sms_user_header(rope, ref_num, pdu_count, pdu_index); in gsm_rope_add_sms_deliver_pdu()
1158 gsm_rope_add_c( rope, count ); in gsm_rope_add_sms_deliver_pdu()
1162 dst = gsm_rope_reserve( rope, count ); in gsm_rope_add_sms_deliver_pdu()
1174 gsm_rope_add_c( rope, count*2 + 6 ); in gsm_rope_add_sms_deliver_pdu()
1175 gsm_rope_add_sms_user_header( rope, ref_num, pdu_count, pdu_index ); in gsm_rope_add_sms_deliver_pdu()
1178 gsm_rope_add_c( rope, count*2 ); in gsm_rope_add_sms_deliver_pdu()
1180 gsm_rope_add_c( rope, count*2 ); in gsm_rope_add_sms_deliver_pdu()
1181 dst = gsm_rope_reserve( rope, count*2 ); in gsm_rope_add_sms_deliver_pdu()
1200 GsmRopeRec rope[1]; in smspdu_create_deliver() local
1206 gsm_rope_init( rope ); in smspdu_create_deliver()
1207 gsm_rope_add_sms_deliver_pdu( rope, utf8, utf8len, use_gsm7, in smspdu_create_deliver()
1210 if (rope->error) in smspdu_create_deliver()
1213 gsm_rope_init_alloc( rope, rope->pos ); in smspdu_create_deliver()
1215 gsm_rope_add_sms_deliver_pdu( rope, utf8, utf8len, use_gsm7, in smspdu_create_deliver()
1219 p->base = gsm_rope_done_acquire( rope, &size ); in smspdu_create_deliver()