summaryrefslogtreecommitdiff
path: root/include/rabbit.hrl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-06-24 12:55:50 +0100
committerSimon MacMullen <simon@rabbitmq.com>2010-06-24 12:55:50 +0100
commitf8ece9ffd114abe663e7f9bb76ac5cbfdffdfc08 (patch)
tree842447055afa6d1c2aa474448706a5aae3a7f959 /include/rabbit.hrl
parent1e6d343efdd7fd3de0cc6a48ed84d70f22b2b4ad (diff)
downloadrabbitmq-server-git-f8ece9ffd114abe663e7f9bb76ac5cbfdffdfc08.tar.gz
Add protocol to reader and writer state, and pass it around in enough places to let us switch based on protocol. Remove a couple of unused exports while we're there.
Diffstat (limited to 'include/rabbit.hrl')
-rw-r--r--include/rabbit.hrl4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl
index 06297c69f3..cff17e080a 100644
--- a/include/rabbit.hrl
+++ b/include/rabbit.hrl
@@ -36,7 +36,8 @@
-record(vhost, {virtual_host, dummy}).
--record(connection, {user, timeout_sec, frame_max, vhost, client_properties}).
+-record(connection, {user, timeout_sec, frame_max, vhost, client_properties,
+ protocol}).
-record(content,
{class_id,
@@ -173,6 +174,7 @@
explanation :: string(),
method :: atom()}).
+-type(protocol() :: atom()).
-endif.
%%----------------------------------------------------------------------------