diff options
| author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-09-03 18:31:58 +0100 |
|---|---|---|
| committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-09-03 18:31:58 +0100 |
| commit | a2a0397e0d3c5243cf4fc210da391a4b9cedd02b (patch) | |
| tree | 46e0a7b4b7f1d473fca3ad9e05dea77d6710b248 /include/rabbit.hrl | |
| parent | bb892b5585a67016282ce3e9627d7bdf106ae13e (diff) | |
| parent | 4fec65f1e195e2a647f89e8eefc66104c928aa4b (diff) | |
| download | rabbitmq-server-git-a2a0397e0d3c5243cf4fc210da391a4b9cedd02b.tar.gz | |
merge default into bug22902
Diffstat (limited to 'include/rabbit.hrl')
| -rw-r--r-- | include/rabbit.hrl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl index 3fd525686b..b9abd78857 100644 --- a/include/rabbit.hrl +++ b/include/rabbit.hrl @@ -30,13 +30,14 @@ %% -record(user, {username, password}). --record(permission, {configure, write, read}). +-record(permission, {scope, configure, write, read}). -record(user_vhost, {username, virtual_host}). -record(user_permission, {user_vhost, permission}). -record(vhost, {virtual_host, dummy}). --record(connection, {user, timeout_sec, frame_max, vhost, client_properties}). +-record(connection, {protocol, user, timeout_sec, frame_max, vhost, + client_properties}). -record(content, {class_id, @@ -44,6 +45,7 @@ properties_bin, %% either 'none', or an encoded properties binary %% Note: at most one of properties and properties_bin can be %% 'none' at once. + protocol, %% The protocol under which properties_bin was encoded payload_fragments_rev %% list of binaries, in reverse order (!) }). @@ -70,16 +72,20 @@ -record(delivery, {mandatory, immediate, txn, sender, message}). -record(amqp_error, {name, explanation, method = none}). +-record(event, {type, props, timestamp}). + %%---------------------------------------------------------------------------- -define(COPYRIGHT_MESSAGE, "Copyright (C) 2007-2010 LShift Ltd., Cohesive Financial Technologies LLC., and Rabbit Technologies Ltd."). -define(INFORMATION_MESSAGE, "Licensed under the MPL. See http://www.rabbitmq.com/"). +-define(PROTOCOL_VERSION, "AMQP 0-9-1 / 0-9 / 0-8"). -define(ERTS_MINIMUM, "5.6.3"). -define(MAX_WAIT, 16#ffffffff). -define(HIBERNATE_AFTER_MIN, 1000). -define(DESIRED_HIBERNATE, 10000). +-define(STATS_INTERVAL, 5000). -ifdef(debug). -define(LOGDEBUG0(F), rabbit_log:debug(F)). |
