hast.h (226462) | hast.h (226463) |
---|---|
1/*- 2 * Copyright (c) 2009-2010 The FreeBSD Foundation 3 * Copyright (c) 2011 Pawel Jakub Dawidek <pawel@dawidek.net> 4 * All rights reserved. 5 * 6 * This software was developed by Pawel Jakub Dawidek under sponsorship from 7 * the FreeBSD Foundation. 8 * --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * | 1/*- 2 * Copyright (c) 2009-2010 The FreeBSD Foundation 3 * Copyright (c) 2011 Pawel Jakub Dawidek <pawel@dawidek.net> 4 * All rights reserved. 5 * 6 * This software was developed by Pawel Jakub Dawidek under sponsorship from 7 * the FreeBSD Foundation. 8 * --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * |
30 * $FreeBSD: head/sbin/hastd/hast.h 226462 2011-10-17 09:59:04Z pjd $ | 30 * $FreeBSD: head/sbin/hastd/hast.h 226463 2011-10-17 12:22:09Z pjd $ |
31 */ 32 33#ifndef _HAST_H_ 34#define _HAST_H_ 35 36#include <sys/queue.h> 37#include <sys/socket.h> 38 --- 72 unchanged lines hidden (view full) --- 111 112struct hastd_config { 113 /* Address to communicate with hastctl(8). */ 114 char hc_controladdr[HAST_ADDRSIZE]; 115 /* Protocol-specific data. */ 116 struct proto_conn *hc_controlconn; 117 /* Incoming control connection. */ 118 struct proto_conn *hc_controlin; | 31 */ 32 33#ifndef _HAST_H_ 34#define _HAST_H_ 35 36#include <sys/queue.h> 37#include <sys/socket.h> 38 --- 72 unchanged lines hidden (view full) --- 111 112struct hastd_config { 113 /* Address to communicate with hastctl(8). */ 114 char hc_controladdr[HAST_ADDRSIZE]; 115 /* Protocol-specific data. */ 116 struct proto_conn *hc_controlconn; 117 /* Incoming control connection. */ 118 struct proto_conn *hc_controlin; |
119 /* PID file path. */ 120 char hc_pidfile[PATH_MAX]; |
|
119 /* List of addresses to listen on. */ 120 TAILQ_HEAD(, hastd_listen) hc_listen; 121 /* List of resources. */ 122 TAILQ_HEAD(, hast_resource) hc_resources; 123}; 124 125#define HAST_REPLICATION_FULLSYNC 0 126#define HAST_REPLICATION_MEMSYNC 1 --- 121 unchanged lines hidden --- | 121 /* List of addresses to listen on. */ 122 TAILQ_HEAD(, hastd_listen) hc_listen; 123 /* List of resources. */ 124 TAILQ_HEAD(, hast_resource) hc_resources; 125}; 126 127#define HAST_REPLICATION_FULLSYNC 0 128#define HAST_REPLICATION_MEMSYNC 1 --- 121 unchanged lines hidden --- |