Blame keepalived/include/vrrp_sync.h

Packit c22fc9
/*
Packit c22fc9
 * Soft:        Keepalived is a failover program for the LVS project
Packit c22fc9
 *              <www.linuxvirtualserver.org>. It monitor & manipulate
Packit c22fc9
 *              a loadbalanced server pool using multi-layer checks.
Packit c22fc9
 *
Packit c22fc9
 * Part:        vrrp_sync.c include file.
Packit c22fc9
 *
Packit c22fc9
 * Author:      Alexandre Cassen, <acassen@linux-vs.org>
Packit c22fc9
 *
Packit c22fc9
 *              This program is distributed in the hope that it will be useful,
Packit c22fc9
 *              but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit c22fc9
 *              MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Packit c22fc9
 *              See the GNU General Public License for more details.
Packit c22fc9
 *
Packit c22fc9
 *              This program is free software; you can redistribute it and/or
Packit c22fc9
 *              modify it under the terms of the GNU General Public License
Packit c22fc9
 *              as published by the Free Software Foundation; either version
Packit c22fc9
 *              2 of the License, or (at your option) any later version.
Packit c22fc9
 *
Packit c22fc9
 * Copyright (C) 2001-2017 Alexandre Cassen, <acassen@gmail.com>
Packit c22fc9
 */
Packit c22fc9
Packit c22fc9
#ifndef _VRRP_SYNC_H
Packit c22fc9
#define _VRRP_SYNC_H
Packit c22fc9
Packit c22fc9
/* local include */
Packit c22fc9
#include "vrrp.h"
Packit c22fc9
Packit c22fc9
/* TSM size */
Packit c22fc9
#define VRRP_MAX_TSM_STATE	3
Packit c22fc9
Packit c22fc9
/* MACRO definition */
Packit c22fc9
#define GROUP_STATE(G) ((G)->state)
Packit c22fc9
#define GROUP_NAME(G)  ((G)->gname)
Packit c22fc9
Packit c22fc9
/* extern prototypes */
Packit c22fc9
extern vrrp_t *vrrp_get_instance(char *);
Packit c22fc9
extern void vrrp_sync_set_group(vrrp_sgroup_t *);
Packit c22fc9
extern bool vrrp_sync_can_goto_master(vrrp_t *);
Packit c22fc9
extern void vrrp_sync_backup(vrrp_t *);
Packit c22fc9
extern void vrrp_sync_master(vrrp_t *);
Packit c22fc9
extern void vrrp_sync_fault(vrrp_t *);
Packit c22fc9
Packit c22fc9
#endif