summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2010-12-16 15:00:36 +0000
committerMatthew Sackman <matthew@rabbitmq.com>2010-12-16 15:00:36 +0000
commit031508ec16a3a86844433330143bfd88f1f6b855 (patch)
tree1b1d5254d5b97615168f38bb76ef6d9b4968c7aa /include
parentc2c9a6526e9caec9be22b5e1531c640631369ea0 (diff)
downloadrabbitmq-server-git-031508ec16a3a86844433330143bfd88f1f6b855.tar.gz
Move the various files from rabbit-ha to rabbit-server as the ha work can't exist as a plugin
Diffstat (limited to 'include')
-rw-r--r--include/gm_specs.hrl28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/gm_specs.hrl b/include/gm_specs.hrl
new file mode 100644
index 0000000000..7f607755c5
--- /dev/null
+++ b/include/gm_specs.hrl
@@ -0,0 +1,28 @@
+%% The contents of this file are subject to the Mozilla Public License
+%% Version 1.1 (the "License"); you may not use this file except in
+%% compliance with the License. You may obtain a copy of the License at
+%% http://www.mozilla.org/MPL/
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+%% License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% The Original Code is RabbitMQ.
+%%
+%% The Initial Developer of the Original Code is VMware, Inc.
+%% Copyright (c) 2007-2010 VMware, Inc. All rights reserved.
+%%
+
+-ifdef(use_specs).
+
+-type(callback_result() :: 'ok' | {'stop', any()}).
+-type(args() :: [any()]).
+-type(members() :: [pid()]).
+
+-spec(joined/2 :: (args(), members()) -> callback_result()).
+-spec(members_changed/3 :: (args(), members(), members()) -> callback_result()).
+-spec(handle_msg/3 :: (args(), pid(), any()) -> callback_result()).
+-spec(terminate/2 :: (args(), term()) -> any()).
+
+-endif.