hastd.h revision 217784
1139804Simp/*- 2885Swollman * Copyright (c) 2009-2010 The FreeBSD Foundation 3885Swollman * All rights reserved. 4885Swollman * 5885Swollman * This software was developed by Pawel Jakub Dawidek under sponsorship from 6885Swollman * the FreeBSD Foundation. 7885Swollman * 8885Swollman * Redistribution and use in source and binary forms, with or without 9885Swollman * modification, are permitted provided that the following conditions 10885Swollman * are met: 11885Swollman * 1. Redistributions of source code must retain the above copyright 12885Swollman * notice, this list of conditions and the following disclaimer. 13885Swollman * 2. Redistributions in binary form must reproduce the above copyright 14885Swollman * notice, this list of conditions and the following disclaimer in the 15885Swollman * documentation and/or other materials provided with the distribution. 16885Swollman * 1710625Sdg * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 18885Swollman * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19885Swollman * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20885Swollman * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 21885Swollman * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22885Swollman * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23885Swollman * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24885Swollman * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25885Swollman * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26885Swollman * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27116182Sobrien * SUCH DAMAGE. 28116182Sobrien * 29116182Sobrien * $FreeBSD: head/sbin/hastd/hastd.h 217784 2011-01-24 15:04:15Z pjd $ 302056Swollman */ 31142448Ssobomax 32142448Ssobomax#ifndef _HASTD_H_ 33182191Skib#define _HASTD_H_ 3440435Speter 3511332Sswallace#include <sys/param.h> 361549Srgrimes#include <libutil.h> 372056Swollman 382056Swollman#include <nv.h> 39885Swollman 40886Swollman#include "hast.h" 41885Swollman 42886Swollmanextern const char *cfgpath; 43886Swollmanextern bool sigexit_received; 44886Swollmanextern struct pidfh *pfh; 45886Swollman 46885Swollmanvoid hastd_primary(struct hast_resource *res); 47146731Sgadvoid hastd_secondary(struct hast_resource *res, struct nv *nvin); 48146731Sgad 49212965Salcvoid primary_config_reload(struct hast_resource *res, struct nv *nv); 50885Swollman 51146731Sgad#endif /* !_HASTD_H_ */ 52146731Sgad