hastd.h revision 204076
1295011Sandrew/*- 2295011Sandrew * Copyright (c) 2009-2010 The FreeBSD Foundation 3295011Sandrew * All rights reserved. 4295011Sandrew * 5295011Sandrew * This software was developed by Pawel Jakub Dawidek under sponsorship from 6295011Sandrew * the FreeBSD Foundation. 7295011Sandrew * 8295011Sandrew * Redistribution and use in source and binary forms, with or without 9295011Sandrew * modification, are permitted provided that the following conditions 10295011Sandrew * are met: 11295011Sandrew * 1. Redistributions of source code must retain the above copyright 12295011Sandrew * notice, this list of conditions and the following disclaimer. 13295011Sandrew * 2. Redistributions in binary form must reproduce the above copyright 14295011Sandrew * notice, this list of conditions and the following disclaimer in the 15295011Sandrew * documentation and/or other materials provided with the distribution. 16295011Sandrew * 17295011Sandrew * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 18295011Sandrew * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19295011Sandrew * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20295011Sandrew * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 21295011Sandrew * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22295011Sandrew * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23295011Sandrew * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24295011Sandrew * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25295011Sandrew * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26295011Sandrew * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27295011Sandrew * SUCH DAMAGE. 28295011Sandrew * 29295011Sandrew * $FreeBSD: head/sbin/hastd/hastd.h 204076 2010-02-18 23:16:19Z pjd $ 30295011Sandrew */ 31295011Sandrew 32295011Sandrew#ifndef _HASTD_H_ 33295011Sandrew#define _HASTD_H_ 34295011Sandrew 35295011Sandrew#include <sys/param.h> 36295011Sandrew#include <libutil.h> 37295011Sandrew 38295011Sandrew#include <nv.h> 39295011Sandrew 40295011Sandrew#include "hast.h" 41295011Sandrew 42295011Sandrewextern bool sigexit_received; 43295011Sandrewextern struct pidfh *pfh; 44295011Sandrew 45295011Sandrewvoid hastd_primary(struct hast_resource *res); 46295011Sandrewvoid hastd_secondary(struct hast_resource *res, struct nv *nvin); 47295011Sandrew 48295011Sandrew#endif /* !_HASTD_H_ */ 49295011Sandrew