summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-04-05 12:41:34 +0100
committerSimon MacMullen <simon@rabbitmq.com>2012-04-05 12:41:34 +0100
commit7acdb19d99138cfe38f4f91cf7790c321c334b6c (patch)
tree15223ecf4a8009f26209338b211c9d04e5f54bba /src
parentaced2bf037b94bce4e941d5114e155386b146eae (diff)
downloadrabbitmq-server-git-7acdb19d99138cfe38f4f91cf7790c321c334b6c.tar.gz
Specs.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_runtime_parameters.erl21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/rabbit_runtime_parameters.erl b/src/rabbit_runtime_parameters.erl
index fd240fa7d4..11d2e90036 100644
--- a/src/rabbit_runtime_parameters.erl
+++ b/src/rabbit_runtime_parameters.erl
@@ -21,6 +21,27 @@
-export([parse/1, set/3, clear/2, list/0, list/1, list_formatted/0, lookup/2,
value/2, value/3, info_keys/0]).
+%%----------------------------------------------------------------------------
+
+-ifdef(use_specs).
+
+-type(ok_or_error_string() :: 'ok' | {'error_string', string()}).
+
+-spec(parse/1 :: (string()) -> term()).
+-spec(set/3 :: (binary(), binary(), term()) -> ok_or_error_string()).
+-spec(clear/2 :: (binary(), binary()) -> ok_or_error_string()).
+-spec(list/0 :: () -> [rabbit_types:infos()]).
+-spec(list/1 :: (binary()) -> [rabbit_types:infos()]).
+-spec(list_formatted/0 :: () -> [rabbit_types:infos()]).
+-spec(lookup/2 :: (binary(), binary()) -> rabbit_types:infos()).
+-spec(value/2 :: (binary(), binary()) -> term()).
+-spec(value/3 :: (binary(), binary(), term()) -> term()).
+-spec(info_keys/0 :: () -> rabbit_types:info_keys()).
+
+-endif.
+
+%%---------------------------------------------------------------------------
+
-import(rabbit_misc, [pget/2, pset/3]).
-define(TABLE, rabbit_runtime_parameters).