%/*
% * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
% * Use is subject to license terms.
% *
% * CDDL HEADER START
% *
% * The contents of this file are subject to the terms of the
% * Common Development and Distribution License, Version 1.0 only
% * (the "License"). You may not use this file except in compliance
% * with the License.
% *
% * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
% * See the License for the specific language governing permissions
% * and limitations under the License.
% *
% * When distributing Covered Code, include this CDDL HEADER in each
% * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
% * If applicable, add the following below this CDDL HEADER, with the
% * fields enclosed by brackets "[]" replaced with your own identifying
% * information: Portions Copyright [yyyy] [name of copyright owner]
% *
% * CDDL HEADER END
% */
%
%#pragma ident "%Z%%M% %I% %E% SMI"
%
#ifndef _KERNEL
%#include <netdb.h>
#endif
%
#ifdef RPC_SVC
%
%#include <signal.h>
#endif /* RPC_SVC */
%
%/*
% * mediator (med) errors, definition of MDE_MED_HOSTNOMED must be changed
% * when new errors are added, since MDE_MED_NOERROR has to come out to
% * be zero!
% */
enum md_med_errno_t {
MDE_MED_HOSTNOMED = -16,
};
struct med_err_t {
int med_errno; /* errno or negative error code */
};
#ifdef RPC_HDR
%
%/*
% * Null error structure initializer.
% */
%
%/*
% * Mediator Magic Number and Data Revision String
% */
%#define MED_DATA_MAGIC 0x6d656461
%#define MED_DATA_REV 0x10000000
%
%#define MED_REC_MAGIC 0x6d657265
%#define MED_REC_REV 0x10000000
%
%#define MED_DB_MAGIC 0x6d656462
%#define MED_DB_REV 0x10000000
%
%#define METAETCDIR "/etc/lvm/"
%
%extern char *med_errnum_to_str(int errnum);
#endif /* RPC_HDR */
%/* Mediator records in MN diskset have all callers set to multiowner */
%#define MED_MN_CALLER "multiowner"
%
#ifdef RPC_XDR
%
%/* Start - Avoid duplicate definitions, but get the xdr calls right */
%#if 0
#include "meta_arr.x"
%#endif /* 0 */
%/* End - Avoid duplicate definitions, but get the xdr calls right */
%
#endif /* RPC_XDR */
#ifdef RPC_HDR
struct med_db_hdr_t {
};
%
%/*
% * Flags for the mediator data
% */
%
%#define MED_DFL_GOLDEN 0x0001
%#define MED_DFL_ERROR 0x0002
%
#endif /* RPC_HDR */
%
struct med_data_t {
struct timeval med_dat_id;
int med_dat_spare;
};
#ifdef RPC_HDR
%
%/*
% * List of mediator data
% */
%
struct med_data_lst_t {
};
%
%/*
% * Flags for the mediator record
% */
%
%#define MED_RFL_DEL 0x0001
%
#endif /* RPC_HDR */
%
#ifndef _KERNEL
struct med_rec_t {
};
#endif /* !_KERNEL */
struct med_med_t {
string med_caller<>;
};
struct med_args_t {
};
struct med_res_t {
};
struct med_get_data_res_t {
};
struct med_upd_data_args_t {
};
#ifndef _KERNEL
struct med_get_rec_res_t {
};
struct med_upd_rec_args_t {
};
#endif /* !_KERNEL */
struct med_hnm_res_t {
};
#ifdef RPC_XDR
%
%/*
% * Constant null error struct.
% */
#endif /* RPC_XDR */
#ifdef RPC_HDR
%
%/*
% * External reference to constant null error struct. (declared in med_xdr.c)
% */
%extern const med_err_t med_null_err;
%extern const struct timeval md_med_def_timeout;
%extern const struct timeval md_med_pmap_timeout;
%
%/*
% * Some useful defines
% */
%#define MED_SERVNAME "rpc.metamedd"
%#define MED_SVC "metamed"
%
%/*
% * authorization info
% */
#endif /* RPC_HDR */
#ifndef _KERNEL
#endif
} = 1;
} = 100242;
#ifdef RPC_HDR
#ifdef _KERNEL
%
#endif /* ! _KERNEL */
#endif /* RPC_HDR */