aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/compiler
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2017-06-11 09:33:42 +0200
committerAnders Svensson <[email protected]>2017-06-13 13:50:07 +0200
commitcac106defc5060c5e485480e8003b992482d751d (patch)
tree42da7438f01f380ce899b81cac9d129d164f40d6 /lib/diameter/src/compiler
parent7384de812f6399a841c8edf0503402e940fd17a4 (diff)
downloadotp-cac106defc5060c5e485480e8003b992482d751d.tar.gz
otp-cac106defc5060c5e485480e8003b992482d751d.tar.bz2
otp-cac106defc5060c5e485480e8003b992482d751d.zip
Change signature associated with dictionary @custom_type/@codecs
To pass the options map through the encode. This is not backwards compatible, and dictionaries supporting @custom_types or @codecs will need to be updated.
Diffstat (limited to 'lib/diameter/src/compiler')
-rw-r--r--lib/diameter/src/compiler/diameter_codegen.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/diameter/src/compiler/diameter_codegen.erl b/lib/diameter/src/compiler/diameter_codegen.erl
index b6fc78b6cc..5a1e3ba941 100644
--- a/lib/diameter/src/compiler/diameter_codegen.erl
+++ b/lib/diameter/src/compiler/diameter_codegen.erl
@@ -568,11 +568,12 @@ cs_custom_avp({Mod, Key, Avps}, Dict) ->
c_custom_avp(Mod, Key, AvpName, Type) ->
{F,A} = custom(Key, AvpName, Type),
- {?clause, [?VAR('T'), ?VAR('Data'), ?Atom(AvpName), ?VAR('_')],
+ {?clause, [?VAR('T'), ?VAR('Data'), ?Atom(AvpName), ?VAR('Opts')],
[],
[?APPLY(?A(Mod), ?A(F), [?VAR('T'),
?Atom(A),
- ?VAR('Data')])]}.
+ ?VAR('Data'),
+ ?VAR('Opts')])]}.
custom(custom_types, AvpName, Type) ->
{AvpName, Type};