The diameterc utility is used to compile a diameter dictionary file into Erlang source. The resulting source implements the interface diameter required to encode and decode the dictionary's messages and AVP's.
The module diameter_make(3) provides an alternate compilation interface.
- diameterc [<options>] <file>
Compile a single dictionary file to Erlang source. Valid options are as follows.-i <dir>
Prepend the specified directory to the code path. Use to point at beam files compiled from inherited dictionaries, @inherits in a dictionary file creating a beam dependency, not an erl/hrl dependency.
Multiple -i options can be specified.
- -o <dir>
Write generated source to the specified directory. Defaults to the current working directory.
Supress erl and hrl generation, respectively.
- --name <name>
- --prefix <prefix>
- --inherits <dict>
Append @inherits of the specified module. Specifying "-" has the effect of discarding clearing any previous inherits, both in the dictionary file and on the options list.
Multiple --inherits options can be specified.
Returns 0 on success, non-zero on failure.