control.h revision 267654
1195609Smp/*- 259243Sobrien * Copyright (c) 2009-2010 The FreeBSD Foundation 359243Sobrien * All rights reserved. 459243Sobrien * 559243Sobrien * This software was developed by Pawel Jakub Dawidek under sponsorship from 659243Sobrien * the FreeBSD Foundation. 759243Sobrien * 859243Sobrien * Redistribution and use in source and binary forms, with or without 959243Sobrien * modification, are permitted provided that the following conditions 1059243Sobrien * are met: 1159243Sobrien * 1. Redistributions of source code must retain the above copyright 1259243Sobrien * notice, this list of conditions and the following disclaimer. 1359243Sobrien * 2. Redistributions in binary form must reproduce the above copyright 1459243Sobrien * notice, this list of conditions and the following disclaimer in the 1559243Sobrien * documentation and/or other materials provided with the distribution. 1659243Sobrien * 17100616Smp * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 1859243Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1959243Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2059243Sobrien * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 2159243Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2259243Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2359243Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2459243Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2559243Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2659243Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2759243Sobrien * SUCH DAMAGE. 2859243Sobrien * 2959243Sobrien * $FreeBSD: releng/9.3/sbin/hastd/control.h 221076 2011-04-26 19:38:30Z trociny $ 3059243Sobrien */ 3159243Sobrien 3259243Sobrien#ifndef _CONTROL_H_ 3359243Sobrien#define _CONTROL_H_ 3459243Sobrien 3559243Sobrien#define CONTROL_STATUS 10 3659243Sobrien#define CONTROL_RELOAD 11 3759243Sobrien 38145479Smpstruct hastd_config; 39167465Smpstruct hast_resource; 40145479Smp 41145479Smpvoid child_cleanup(struct hast_resource *res); 42145479Smp 43100616Smpvoid control_set_role(struct hast_resource *res, uint8_t role); 44145479Smp 45145479Smpvoid control_handle(struct hastd_config *cfg); 46145479Smp 47100616Smpvoid *ctrl_thread(void *arg); 48100616Smp 49145479Smp#endif /* !_CONTROL_H_ */ 50145479Smp