cluck 1.0.1
The cluster lock service.
cluck_status.h
Go to the documentation of this file.
1// Copyright (c) 2016-2025 Made to Order Software Corp. All Rights Reserved
2//
3// This program is free software: you can redistribute it and/or modify
4// it under the terms of the GNU General Public License as published by
5// the Free Software Foundation, either version 3 of the License, or
6// (at your option) any later version.
7//
8// This program is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11// GNU General Public License for more details.
12//
13// You should have received a copy of the GNU General Public License
14// along with this program. If not, see <https://www.gnu.org/licenses/>.
15#pragma once
16
17// eventdispatcher
18//
19#include <eventdispatcher/connection_with_send_message.h>
20#include <eventdispatcher/dispatcher.h>
21
22
23
24namespace cluck
25{
26
27
28
30 ed::connection_with_send_message::pointer_t messenger
31 , ed::dispatcher::pointer_t dispatcher
32 , typename ed::dispatcher_match::execute_callback_t callback);
33bool is_lock_ready();
34
35
36
37} // namespace cluck
38// vim: ts=4 sw=4 et
void listen_to_cluck_status(ed::connection_with_send_message::pointer_t messenger, ed::dispatcher::pointer_t dispatcher, typename ed::dispatcher_match::execute_callback_t callback)
Start listening to changes in the cluck status.
bool is_lock_ready()
Check the current status of the cluck daemon.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.