diff options
author | Anders Svensson <[email protected]> | 2011-11-28 12:13:56 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-12-06 18:58:14 +0100 |
commit | 8e178ed5796628bd21a5c85fdc2c864a7b06ae70 (patch) | |
tree | 464694cbc601b3b401dc23465343ee2318988e49 /lib/diameter/src/base/diameter.erl | |
parent | f2a4059d06f8b76d2c1da14197f170deebd64f45 (diff) | |
download | otp-8e178ed5796628bd21a5c85fdc2c864a7b06ae70.tar.gz otp-8e178ed5796628bd21a5c85fdc2c864a7b06ae70.tar.bz2 otp-8e178ed5796628bd21a5c85fdc2c864a7b06ae70.zip |
Smarter diameter_callback
The module was originally just intended as a minimal callback
implementation that could be used as a template. Being able to order
just a subset of callbacks (with reasonable defaults) makes for
simpler code in many cases however so ready support for this can be
useful.
Diffstat (limited to 'lib/diameter/src/base/diameter.erl')
-rw-r--r-- | lib/diameter/src/base/diameter.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter.erl b/lib/diameter/src/base/diameter.erl index ecd3d9542a..336f0c1f2d 100644 --- a/lib/diameter/src/base/diameter.erl +++ b/lib/diameter/src/base/diameter.erl @@ -73,6 +73,7 @@ 'IPFilterRule'/0, 'QoSFilterRule'/0]). +-include_lib("diameter/include/diameter.hrl"). -include("diameter_internal.hrl"). %% --------------------------------------------------------------------------- @@ -298,7 +299,8 @@ call(SvcName, App, Message) -> -type app_module() :: module() - | maybe_improper_list(module(), list()). + | maybe_improper_list(module(), list()) + | #diameter_callback{}. %% Identifier returned by add_transport/2 |