2121
2222-define (MESSAGE_ANNOTATIONS_GUESS_SIZE , 100 ).
2323
24- -define (SIMPLE_VALUE (V ),
24+ -define (IS_SIMPLE_VALUE (V ),
2525 is_binary (V ) orelse
2626 is_number (V ) orelse
2727 is_boolean (V )).
@@ -145,16 +145,32 @@ property(Prop, #v1{bare_and_footer = Bin,
145145 Props = amqp10_framing :decode (PropsDescribed ),
146146 property0 (Prop , Props ).
147147
148- property0 (correlation_id , # 'v1_0.properties' {correlation_id = Corr }) ->
149- Corr ;
150- property0 (message_id , # 'v1_0.properties' {message_id = MsgId }) ->
151- MsgId ;
152- property0 (user_id , # 'v1_0.properties' {user_id = UserId }) ->
153- UserId ;
154- property0 (subject , # 'v1_0.properties' {subject = Subject }) ->
155- Subject ;
156- property0 (to , # 'v1_0.properties' {to = To }) ->
157- To ;
148+ property0 (message_id , # 'v1_0.properties' {message_id = Val }) ->
149+ Val ;
150+ property0 (user_id , # 'v1_0.properties' {user_id = Val }) ->
151+ Val ;
152+ property0 (to , # 'v1_0.properties' {to = Val }) ->
153+ Val ;
154+ property0 (subject , # 'v1_0.properties' {subject = Val }) ->
155+ Val ;
156+ property0 (reply_to , # 'v1_0.properties' {reply_to = Val }) ->
157+ Val ;
158+ property0 (correlation_id , # 'v1_0.properties' {correlation_id = Val }) ->
159+ Val ;
160+ property0 (content_type , # 'v1_0.properties' {content_type = Val }) ->
161+ Val ;
162+ property0 (content_encoding , # 'v1_0.properties' {content_encoding = Val }) ->
163+ Val ;
164+ property0 (absolute_expiry_time , # 'v1_0.properties' {absolute_expiry_time = Val }) ->
165+ Val ;
166+ property0 (creation_time , # 'v1_0.properties' {creation_time = Val }) ->
167+ Val ;
168+ property0 (group_id , # 'v1_0.properties' {group_id = Val }) ->
169+ Val ;
170+ property0 (group_sequence , # 'v1_0.properties' {group_sequence = Val }) ->
171+ Val ;
172+ property0 (reply_to_group_id , # 'v1_0.properties' {reply_to_group_id = Val }) ->
173+ Val ;
158174property0 (_Prop , # 'v1_0.properties' {}) ->
159175 undefined .
160176
@@ -454,7 +470,7 @@ message_annotations_as_simple_map(#v1{message_annotations = Content}) ->
454470message_annotations_as_simple_map0 (Content ) ->
455471 % % the section record format really is terrible
456472 lists :filtermap (fun ({{symbol , K }, {_T , V }})
457- when ? SIMPLE_VALUE (V ) ->
473+ when ? IS_SIMPLE_VALUE (V ) ->
458474 {true , {K , V }};
459475 (_ ) ->
460476 false
@@ -480,7 +496,7 @@ application_properties_as_simple_map(
480496application_properties_as_simple_map0 (Content , L ) ->
481497 % % the section record format really is terrible
482498 lists :foldl (fun ({{utf8 , K }, {_T , V }}, Acc )
483- when ? SIMPLE_VALUE (V ) ->
499+ when ? IS_SIMPLE_VALUE (V ) ->
484500 [{K , V } | Acc ];
485501 ({{utf8 , K }, V }, Acc )
486502 when V =:= undefined orelse is_boolean (V ) ->
0 commit comments