%% This Source Code Form is subject to the terms of the Mozilla Public
%% License, v. 2.0. If a copy of the MPL was not distributed with this
%% file, You can obtain one at https://mozilla.org/MPL/2.0/.
%%
%% Copyright (c) 2007-2021 VMware, Inc. or its affiliates.  All rights reserved.
%%
-define(is_amqqueue_v1(Q), is_record(Q, amqqueue, 19)).

-define(amqqueue_v1_field_name(Q), element(2, Q)).
-define(amqqueue_v1_field_durable(Q), element(3, Q)).
-define(amqqueue_v1_field_auto_delete(Q), element(4, Q)).
-define(amqqueue_v1_field_exclusive_owner(Q), element(5, Q)).
-define(amqqueue_v1_field_arguments(Q), element(6, Q)).
-define(amqqueue_v1_field_pid(Q), element(7, Q)).
-define(amqqueue_v1_field_slave_pids(Q), element(8, Q)).
-define(amqqueue_v1_field_sync_slave_pids(Q), element(9, Q)).
-define(amqqueue_v1_field_recoverable_slaves(Q), element(10, Q)).
-define(amqqueue_v1_field_policy(Q), element(11, Q)).
-define(amqqueue_v1_field_operator_policy(Q), element(12, Q)).
-define(amqqueue_v1_field_gm_pids(Q), element(13, Q)).
-define(amqqueue_v1_field_decorators(Q), element(14, Q)).
-define(amqqueue_v1_field_state(Q), element(15, Q)).
-define(amqqueue_v1_field_policy_version(Q), element(16, Q)).
-define(amqqueue_v1_field_slave_pids_pending_shutdown(Q), element(17, Q)).
-define(amqqueue_v1_field_vhost(Q), element(18, Q)).
-define(amqqueue_v1_field_options(Q), element(19, Q)).
