linux/include/xen/interface/io/xs_wire.h

/* SPDX-License-Identifier: MIT */
/*
 * Details of the "wire" protocol between Xen Store Daemon and client
 * library or guest kernel.
 * Copyright (C) 2005 Rusty Russell IBM Corporation
 */

#ifndef _XS_WIRE_H
#define _XS_WIRE_H

enum xsd_sockmsg_type
{};

#define XS_WRITE_NONE
#define XS_WRITE_CREATE
#define XS_WRITE_CREATE_EXCL

/* We hand errors as strings, for portability. */
struct xsd_errors
{};
#define XSD_ERROR(x)
static struct xsd_errors xsd_errors[] __attribute__((unused)) =;

struct xsd_sockmsg
{};

enum xs_watch_type
{};

/* Inter-domain shared memory communications. */
#define XENSTORE_RING_SIZE
XENSTORE_RING_IDX;
#define MASK_XENSTORE_IDX(idx)
struct xenstore_domain_interface {};

/* Violating this is very bad.  See docs/misc/xenstore.txt. */
#define XENSTORE_PAYLOAD_MAX

/* Violating these just gets you an error back */
#define XENSTORE_ABS_PATH_MAX
#define XENSTORE_REL_PATH_MAX

/* The ability to reconnect a ring */
#define XENSTORE_SERVER_FEATURE_RECONNECTION
/* The presence of the "error" field in the ring page */
#define XENSTORE_SERVER_FEATURE_ERROR

/* Valid values for the connection field */
#define XENSTORE_CONNECTED
#define XENSTORE_RECONNECT

/* Valid values for the error field */
#define XENSTORE_ERROR_NONE
#define XENSTORE_ERROR_COMM
#define XENSTORE_ERROR_RINGIDX
#define XENSTORE_ERROR_PROTO

#endif /* _XS_WIRE_H */