Skip to content

Commit 16fcfe8

Browse files
committed
fix compile errors
1 parent 2010b62 commit 16fcfe8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/mc_ocpp.erl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
init/1,
1212
size/1,
1313
x_header/2,
14+
x_headers/1,
1415
property/2,
1516
routing_headers/2,
1617
convert_from/3,
@@ -51,9 +52,18 @@ size(#ocpp_msg{payload = Iol}) ->
5152
{0, iolist_size(Iol)}.
5253

5354
%%--------------------------------------------------------------------
55+
56+
%% retrieve an x- header from the protocol data
57+
%% the return value should be tagged with an AMQP 1.0 type
5458
x_header(_Key, #ocpp_msg{}) ->
5559
undefined.
5660

61+
%% retrieve x- headers from the protocol data
62+
%% the return values should be tagged with an AMQP 1.0 type
63+
-spec x_headers(#ocpp_msg{}) -> [{binary(), term()}].
64+
x_headers(#ocpp_msg{}) ->
65+
[].
66+
5767
%%--------------------------------------------------------------------
5868
property(correlation_id, #ocpp_msg{msg_id = ID}) when is_binary(ID) ->
5969
{binary, ID};

0 commit comments

Comments
 (0)