/*
* Soft: Keepalived is a failover program for the LVS project
* <www.linuxvirtualserver.org>. It monitor & manipulate
* a loadbalanced server pool using multi-layer checks.
*
* Part: vrrp_static_track.c include file.
*
* Author: Quentin Armitage, <quentin@armitage.org.uk>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
* Copyright (C) 2018-2018 Alexandre Cassen, <acassen@gmail.com>
*/
#ifndef _VRRP_STATIC_TRACK_H
#define _VRRP_STATIC_TRACK_H
/* global includes */
#include <stdio.h>
/* local includes */
#include "vector.h"
#include "list.h"
#include "vrrp_if.h"
/* Parameters for static track groups */
typedef struct _static_track_group {
char *gname; /* Group name */
vector_t *iname; /* Set of VRRP instances in this group, only used during initialisation */
list vrrp_instances; /* List of VRRP instances */
} static_track_group_t;
extern void free_tgroup(void *);
extern void dump_tgroup(FILE *, void *);
extern static_track_group_t *find_track_group(const char *);
extern void static_track_group_init(void);
extern void static_track_reinstate_config(interface_t *);
#endif