summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert@lshift.net>2008-09-02 13:01:19 +0100
committerHubert Plociniczak <hubert@lshift.net>2008-09-02 13:01:19 +0100
commit1fc2c35b5850f70c2ab1a68b57785a45c5a90a18 (patch)
treeec92c440435b6faf3dac7463e594f9fb7bc8bb34 /src
parent727f14072784dd8223503f1500623147ebafa499 (diff)
downloadrabbitmq-server-git-1fc2c35b5850f70c2ab1a68b57785a45c5a90a18.tar.gz
Better naming for types
Diffstat (limited to 'src')
-rw-r--r--src/rabbit.erl3
-rw-r--r--src/rabbit_misc.erl2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index 1af550a341..779416e34e 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -49,11 +49,12 @@
-ifdef(use_specs).
-type(log_location() :: 'tty' | 'undefined' | string()).
+-type(file_suffix() :: binary()).
-spec(start/0 :: () -> 'ok').
-spec(stop/0 :: () -> 'ok').
-spec(stop_and_halt/0 :: () -> 'ok').
--spec(rotate_logs/1 :: (binary_name()) -> 'ok' | {'error', any()}).
+-spec(rotate_logs/1 :: (file_suffix()) -> 'ok' | {'error', any()}).
-spec(status/0 :: () ->
[{running_applications, [{atom(), string(), string()}]} |
{nodes, [node()]} |
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index cf6a483a98..db6da45cc3 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -68,7 +68,7 @@
-spec(get_config/2 :: (atom(), A) -> A).
-spec(set_config/2 :: (atom(), any()) -> 'ok').
-spec(dirty_read/1 :: ({atom(), any()}) -> {'ok', any()} | not_found()).
--spec(r/3 :: (vhost(), K, binary_name()) -> r(K) when is_subtype(K, atom())).
+-spec(r/3 :: (vhost(), K, resource_name()) -> r(K) when is_subtype(K, atom())).
-spec(r/2 :: (vhost(), K) -> #resource{virtual_host :: vhost(),
kind :: K,
name :: '_'}