summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2009-06-05 08:10:26 +0100
committerMatthias Radestock <matthias@lshift.net>2009-06-05 08:10:26 +0100
commita63a9d4971813a81df09d276e68c9048a2489683 (patch)
treee28360e79f24f02294273c70ad6e1596eb78cfd9 /include
parentdc682aeed5f1c63b583635e34b582b52f95d97e1 (diff)
downloadrabbitmq-server-a63a9d4971813a81df09d276e68c9048a2489683.tar.gz
refactoring: bundle up all the data for a publish
Passing this around as separate args was becoming a pain. Also, now it's easier to add more data items.
Diffstat (limited to 'include')
-rw-r--r--include/rabbit.hrl7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl
index ffda0698..5ebc82a2 100644
--- a/include/rabbit.hrl
+++ b/include/rabbit.hrl
@@ -64,6 +64,8 @@
-record(basic_message, {exchange_name, routing_key, content, persistent_key}).
+-record(delivery, {mandatory, immediate, txn, message}).
+
%%----------------------------------------------------------------------------
-ifdef(use_specs).
@@ -134,6 +136,11 @@
content :: content(),
persistent_key :: maybe(pkey())}).
-type(message() :: basic_message()).
+-type(delivery() ::
+ #delivery{mandatory :: bool(),
+ immediate :: bool(),
+ txn :: maybe(txn()),
+ message :: message()}).
%% this really should be an abstract type
-type(msg_id() :: non_neg_integer()).
-type(msg() :: {queue_name(), pid(), msg_id(), bool(), message()}).