[BACK]Return to mdstore.h CVS log [TXT][DIR] Up to [local] / src / usr.sbin / ldomctl

File: [local] / src / usr.sbin / ldomctl / mdstore.h (download)

Revision 1.4, Sat Sep 15 13:20:16 2018 UTC (5 years, 8 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, HEAD
Changes since 1.3: +3 -1 lines

Add support for version 2.0 of the mdstore protocol.

/*	$OpenBSD: mdstore.h,v 1.4 2018/09/15 13:20:16 kettenis Exp $	*/

/*
 * Copyright (c) 2012 Mark Kettenis
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#include <sys/queue.h>
#include <stdbool.h>

extern struct ds_service mdstore_service;

struct mdstore_set {
	const char *name;
	bool booted_set;
	bool boot_set;

	TAILQ_ENTRY(mdstore_set) link;
};

extern TAILQ_HEAD(mdstore_set_head, mdstore_set) mdstore_sets;

void mdstore_register(struct ds_conn *);

void mdstore_download(struct ds_conn *, const char *);
void mdstore_select(struct ds_conn *, const char *);
void mdstore_delete(struct ds_conn *, const char *);