summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2010-07-06 00:22:29 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2010-07-06 00:22:29 +0100
commit97208c1df58105c825ff459715f842bc49698984 (patch)
treed9bdf4199143c9e597ef1417493ab144c185651e /include
parent9a9507b75431227f0c0fae8b4e45d417bc89c659 (diff)
downloadrabbitmq-server-git-97208c1df58105c825ff459715f842bc49698984.tar.gz
moved common types rabbit_types; move net types to rabbit_networking
Diffstat (limited to 'include')
-rw-r--r--include/rabbit_backing_queue_spec.hrl14
-rw-r--r--include/rabbit_exchange_type_spec.hrl2
2 files changed, 8 insertions, 8 deletions
diff --git a/include/rabbit_backing_queue_spec.hrl b/include/rabbit_backing_queue_spec.hrl
index 0cef2379f2..05dc1464cd 100644
--- a/include/rabbit_backing_queue_spec.hrl
+++ b/include/rabbit_backing_queue_spec.hrl
@@ -31,7 +31,7 @@
-type(fetch_result() ::
%% Message, IsDelivered, AckTag, Remaining_Len
- ('empty'|{rabbit:basic_message(), boolean(), ack(), non_neg_integer()})).
+ ('empty'|{rabbit_types:basic_message(), boolean(), ack(), non_neg_integer()})).
-type(is_durable() :: boolean()).
-type(attempt_recovery() :: boolean()).
-type(purged_msg_count() :: non_neg_integer()).
@@ -42,15 +42,15 @@
-spec(terminate/1 :: (state()) -> state()).
-spec(delete_and_terminate/1 :: (state()) -> state()).
-spec(purge/1 :: (state()) -> {purged_msg_count(), state()}).
--spec(publish/2 :: (rabbit:basic_message(), state()) -> state()).
+-spec(publish/2 :: (rabbit_types:basic_message(), state()) -> state()).
-spec(publish_delivered/3 ::
- (ack_required(), rabbit:basic_message(), state()) -> {ack(), state()}).
+ (ack_required(), rabbit_types:basic_message(), state()) -> {ack(), state()}).
-spec(fetch/2 :: (ack_required(), state()) -> {fetch_result(), state()}).
-spec(ack/2 :: ([ack()], state()) -> state()).
--spec(tx_publish/3 :: (rabbit:txn(), rabbit:basic_message(), state()) -> state()).
--spec(tx_ack/3 :: (rabbit:txn(), [ack()], state()) -> state()).
--spec(tx_rollback/2 :: (rabbit:txn(), state()) -> {[ack()], state()}).
--spec(tx_commit/3 :: (rabbit:txn(), fun (() -> any()), state()) -> {[ack()], state()}).
+-spec(tx_publish/3 :: (rabbit_types:txn(), rabbit_types:basic_message(), state()) -> state()).
+-spec(tx_ack/3 :: (rabbit_types:txn(), [ack()], state()) -> state()).
+-spec(tx_rollback/2 :: (rabbit_types:txn(), state()) -> {[ack()], state()}).
+-spec(tx_commit/3 :: (rabbit_types:txn(), fun (() -> any()), state()) -> {[ack()], state()}).
-spec(requeue/2 :: ([ack()], state()) -> state()).
-spec(len/1 :: (state()) -> non_neg_integer()).
-spec(is_empty/1 :: (state()) -> boolean()).
diff --git a/include/rabbit_exchange_type_spec.hrl b/include/rabbit_exchange_type_spec.hrl
index dbbe74f09d..5a010c0d5a 100644
--- a/include/rabbit_exchange_type_spec.hrl
+++ b/include/rabbit_exchange_type_spec.hrl
@@ -31,7 +31,7 @@
-ifdef(use_specs).
-spec(description/0 :: () -> [{atom(), any()}]).
--spec(publish/2 :: (rabbit_exchange:exchange(), rabbit:delivery())
+-spec(publish/2 :: (rabbit_exchange:exchange(), rabbit_types:delivery())
-> {rabbit_router:routing_result(), [pid()]}).
-spec(validate/1 :: (rabbit_exchange:exchange()) -> 'ok').
-spec(create/1 :: (rabbit_exchange:exchange()) -> 'ok').