summaryrefslogtreecommitdiff
path: root/include/gm_specs.hrl
blob: 2a16c862c4c5e6008e23c229e917ab0d49c50267 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
%% 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-2020 VMware, Inc. or its affiliates.  All rights reserved.
%%

-type callback_result() :: 'ok' | {'stop', any()} | {'become', atom(), args()}.
-type args() :: any().
-type members() :: [pid()].

-spec joined(args(), members())                    -> callback_result().
-spec members_changed(args(), members(),members()) -> callback_result().
-spec handle_msg(args(), pid(), any())             -> callback_result().
-spec handle_terminate(args(), term())             -> any().