fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifndef _ISNS_UTILS_H
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define _ISNS_UTILS_H
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <isns_msgq.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef __cplusplus
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern "C" {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint setup_mgmt_door(msg_queue_t *);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetypedef enum {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte PARTIAL_SUCCESS = 100,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte PARTIAL_FAILURE,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_DOOR_ALREADY_RUNNING,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_DOOR_CREATE_FAILED,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_DOOR_MORE_SPACE,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_NULL_XML_MESSAGE,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_INVALID_MGMT_REQUEST,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_XML_VALID_OPERATION_NOT_FOUND,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_XML_VALID_OBJECT_NOT_FOUND,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_XML_FAIL_TO_CREATE_WRITE_BUFFER,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_XML_FAIL_TO_GET_WRITEPTR,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_XML_INIT_READER_FAILED,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_XML_PARSE_MEMORY_FAILED,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_XML_FAILED_TO_SET_XPATH_CONTEXT,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_XML_FAILED_TO_REGISTER_NAMESPACE,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_XML_NEWNODE_FAILED,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_XML_ADDCHILD_FAILED,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_XML_SETPROP_FAILED,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_XML_NEWCHILD_FAILED,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_SYNTAX_MISSING_ROOT,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_SYNTAX_MISSING_NAME_ATTR,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_MALLOC_FAILED,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_XML_OP_FAILED,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_XML_STRDUP_FAILED,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_DOOR_SERVER_DETECTED_INVALID_USER,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_DOOR_SERVER_DETECTED_NOT_AUTHORIZED_USER,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_MATCHING_ISCSI_NODE_NOT_FOUND,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_MATCHING_NETWORK_ENTITY_NOT_FOUND,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_NO_PORTAL_GROUP_FOUND,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_MATCHING_PORTAL_NOT_FOUND,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_MATCHING_NODE_NOT_FOUND,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_MATCHING_DD_NOT_FOUND,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_MATCHING_DDSET_NOT_FOUND,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_NO_ASSOCIATED_DD_FOUND,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_NO_ASSOCIATED_DDSET_FOUND,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_NO_SUCH_ASSOCIATION,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_ALREADY_ASSOCIATED,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_NAME_IN_USE,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ERR_DOOR_UCRED_FAILED
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte} result_code_t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortechar *result_code_to_str(int);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef __cplusplus
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif /* _ISNS_UTILS_H */