hastd.h revision 210886
139287Ssos/*- 239643Syokota * Copyright (c) 2009-2010 The FreeBSD Foundation 3205566Sjkim * All rights reserved. 439287Ssos * 539287Ssos * This software was developed by Pawel Jakub Dawidek under sponsorship from 639287Ssos * the FreeBSD Foundation. 739287Ssos * 839287Ssos * Redistribution and use in source and binary forms, with or without 939287Ssos * modification, are permitted provided that the following conditions 1039643Syokota * are met: 1139643Syokota * 1. Redistributions of source code must retain the above copyright 1239287Ssos * notice, this list of conditions and the following disclaimer. 1339287Ssos * 2. Redistributions in binary form must reproduce the above copyright 1439287Ssos * notice, this list of conditions and the following disclaimer in the 1539287Ssos * documentation and/or other materials provided with the distribution. 1639643Syokota * 1739643Syokota * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 1839643Syokota * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1939643Syokota * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2039643Syokota * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 2139643Syokota * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2239643Syokota * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2339643Syokota * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2439643Syokota * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2539643Syokota * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2639287Ssos * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2739287Ssos * SUCH DAMAGE. 28115703Sobrien * 29115703Sobrien * $FreeBSD: head/sbin/hastd/hastd.h 210886 2010-08-05 19:16:31Z pjd $ 30115703Sobrien */ 3142504Syokota 3266710Sjhb#ifndef _HASTD_H_ 3339287Ssos#define _HASTD_H_ 3456836Speter 3539287Ssos#include <sys/param.h> 3639287Ssos#include <libutil.h> 37198251Sjkim 3839287Ssos#include <nv.h> 3939287Ssos 4042179Syokota#include "hast.h" 4139287Ssos 4248104Syokotaextern const char *cfgpath; 4348104Syokotaextern bool sigexit_received, sighup_received; 4439287Ssosextern struct pidfh *pfh; 4548104Syokota 4648104Syokotavoid hastd_primary(struct hast_resource *res); 47130312Sjhbvoid hastd_secondary(struct hast_resource *res, struct nv *nvin); 4839287Ssos 4939287Ssos#endif /* !_HASTD_H_ */ 50197383Sdelphij