Blame keepalived/include/vrrp_static_track.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_static_track.c include file.
Packit c22fc9
 *
Packit c22fc9
 * Author:      Quentin Armitage, <quentin@armitage.org.uk>
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) 2018-2018 Alexandre Cassen, <acassen@gmail.com>
Packit c22fc9
 */
Packit c22fc9
Packit c22fc9
#ifndef _VRRP_STATIC_TRACK_H
Packit c22fc9
#define _VRRP_STATIC_TRACK_H
Packit c22fc9
Packit c22fc9
/* global includes */
Packit c22fc9
#include <stdio.h>
Packit c22fc9
Packit c22fc9
/* local includes */
Packit c22fc9
#include "vector.h"
Packit c22fc9
#include "list.h"
Packit c22fc9
#include "vrrp_if.h"
Packit c22fc9
Packit c22fc9
/* Parameters for static track groups */
Packit c22fc9
typedef struct _static_track_group {
Packit c22fc9
	char			*gname;			/* Group name */
Packit c22fc9
	vector_t		*iname;			/* Set of VRRP instances in this group, only used during initialisation */
Packit c22fc9
	list			vrrp_instances;		/* List of VRRP instances */
Packit c22fc9
} static_track_group_t;
Packit c22fc9
Packit c22fc9
extern void free_tgroup(void *);
Packit c22fc9
extern void dump_tgroup(FILE *, void *);
Packit c22fc9
extern static_track_group_t *find_track_group(const char *);
Packit c22fc9
extern void static_track_group_init(void);
Packit c22fc9
extern void static_track_reinstate_config(interface_t *);
Packit c22fc9
Packit c22fc9
#endif