summaryrefslogtreecommitdiff
path: root/src/rabbit_mnesia.erl
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2010-07-01 16:48:32 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2010-07-01 16:48:32 +0100
commitc61a2425626f80c16eedc53ef5ad638e2ba50c3e (patch)
tree57268b2a6499b8ecc259b9f0594239a63ee8c8fd /src/rabbit_mnesia.erl
parent03fa15425824619c8c7e5a7277f34ecc0df351fe (diff)
downloadrabbitmq-server-c61a2425626f80c16eedc53ef5ad638e2ba50c3e.tar.gz
partially moved types out of rabbit.hrl
Diffstat (limited to 'src/rabbit_mnesia.erl')
-rw-r--r--src/rabbit_mnesia.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/rabbit_mnesia.erl b/src/rabbit_mnesia.erl
index ba3019be..a3cac45c 100644
--- a/src/rabbit_mnesia.erl
+++ b/src/rabbit_mnesia.erl
@@ -42,19 +42,22 @@
%% other mnesia-using Erlang applications, such as ejabberd
-export([create_tables/0]).
+-export_type([node_type/0]).
+
-include("rabbit.hrl").
%%----------------------------------------------------------------------------
-ifdef(use_specs).
--spec(status/0 :: () -> [{'nodes', [{node_type(), [erlang_node()]}]} |
- {'running_nodes', [erlang_node()]}]).
+-type(node_type() :: disc_only | disc | ram | unknown).
+-spec(status/0 :: () -> [{'nodes', [{node_type(), [rabbit:erlang_node()]}]} |
+ {'running_nodes', [rabbit:erlang_node()]}]).
-spec(dir/0 :: () -> file:filename()).
-spec(ensure_mnesia_dir/0 :: () -> 'ok').
-spec(init/0 :: () -> 'ok').
-spec(is_db_empty/0 :: () -> boolean()).
--spec(cluster/1 :: ([erlang_node()]) -> 'ok').
+-spec(cluster/1 :: ([rabbit:erlang_node()]) -> 'ok').
-spec(reset/0 :: () -> 'ok').
-spec(force_reset/0 :: () -> 'ok').
-spec(is_clustered/0 :: () -> boolean()).