summaryrefslogtreecommitdiff
path: root/src/rebar_asn1_compiler.erl
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2011-03-10 15:07:41 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-03-28 18:39:38 +0200
commit6d75bfbeb0c981e25c1b30b481118ea52a3b377e (patch)
treee8a311712291c0290b908f2d2f83ab9ed00a56ec /src/rebar_asn1_compiler.erl
parent68f47435636cb72e6088fb68eacf5aad764f13cd (diff)
downloadrebar-6d75bfbeb0c981e25c1b30b481118ea52a3b377e.tar.gz
Clean up specs
Diffstat (limited to 'src/rebar_asn1_compiler.erl')
-rw-r--r--src/rebar_asn1_compiler.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rebar_asn1_compiler.erl b/src/rebar_asn1_compiler.erl
index 750ff41..bd16813 100644
--- a/src/rebar_asn1_compiler.erl
+++ b/src/rebar_asn1_compiler.erl
@@ -36,18 +36,19 @@
%% Public API
%% ===================================================================
--spec compile(Config::#config{}, AppFile::string()) -> 'ok'.
+-spec compile(Config::rebar_config:config(), AppFile::file:filename()) -> 'ok'.
compile(Config, _AppFile) ->
rebar_base_compiler:run(Config, filelib:wildcard("asn1/*.asn1"),
"asn1", ".asn1", "src", ".erl",
fun compile_asn1/3).
--spec clean(Config::#config{}, AppFile::string()) -> 'ok'.
+-spec clean(Config::rebar_config:config(), AppFile::file:filename()) -> 'ok'.
clean(_Config, _AppFile) ->
rebar_file_utils:delete_each(asn_generated_files("asn1", "src")),
ok.
--spec compile_asn1(string(), string(), #config{}) -> ok.
+-spec compile_asn1(file:filename(), file:filename(),
+ rebar_config:config()) -> ok.
compile_asn1(Source, Target, Config) ->
ok = rebar_utils:ensure_dir(Target),
Opts = [{outdir, "src"}, noobj] ++ rebar_config:get(Config, asn1_opts, []),