dv_api.h revision cee0fb94c0d4227de0a00efc162fb2739844b641
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
* or http://www.opensolaris.org/os/licensing.
* 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
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _DV_API_
#define _DV_API_
typedef enum dv_tag {
DV_TAG_FIRST = 0,
DV_TAG_EVENT_FILE_NUMBER,
DV_TAG_LOG_PATH,
DV_TAG_LOG_SIZE,
DV_TAG_TIME_FORMAT,
DV_TAG_UNIFORM_CLEAN_USE,
DV_TAG_AC_CMD_ACCESS,
DV_TAG_AC_CMD_DEFAULT,
DV_TAG_AC_VOL_ACCESS,
DV_TAG_AC_VOL_DEFAULT,
DV_TAG_AC_LOG_ACCESS,
DV_TAG_CSI_CONNECT_AGETIME,
DV_TAG_CSI_RETRY_TIMEOUT,
DV_TAG_CSI_RETRY_TRIES,
DV_TAG_CSI_TCP_RPCSERVICE,
DV_TAG_CSI_UDP_RPCSERVICE,
DV_TAG_AUTO_CLEAN,
DV_TAG_AUTO_START,
DV_TAG_MAX_ACSMT,
DV_TAG_MAX_ACS_PROCESSES,
DV_TAG_TRACE_ENTER,
DV_TAG_TRACE_VOLUME,
DV_TAG_ACSLS_MIN_VERSION,
DV_TAG_DI_TRACE_FILE,
DV_TAG_DI_TRACE_VALUE,
DV_TAG_LM_RP_TRAIL,
DV_TAG_ACSLS_ALLOW_ACSPD,
DV_TAG_LAST
} DV_TAG;
#define DVI_NAME_LEN 32
#define DVI_VALUE_LEN 128
enum dv_shm_type {
DVI_SHM_UNKNOWN = 0,
DVI_SHM_BOOLEAN,
DVI_SHM_MASK,
DVI_SHM_NUMBER,
DVI_SHM_STRING
};
union dv_shm_value {
BOOLEAN boolean;
unsigned long mask;
long number;
char string[DVI_VALUE_LEN + 1];
};
struct dshm_hdr {
BOOLEAN reattach;
BOOLEAN built;
time_t timestamp;
};
struct dv_shm {
struct dshm_hdr header;
int i_count;
struct {
char ca_name[DVI_NAME_LEN + 1];
enum dv_shm_type type;
union dv_shm_value u;
} variable[1];
};
#endif /* _DV_API_ */