/*
* 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
* 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
*/
/*
*/
#ifndef _MP_UTILS_H
#define _MP_UTILS_H
#ifdef __cplusplus
extern "C" {
#endif
#include <mpapi.h>
#include <libsysevent.h>
#include <syslog.h>
#include <pthread.h>
/* Default bytes */
/* Node to hold pointer to client callback */
typedef struct _property_node
{
void *pCallerData;
/* Node to hold pointer to client callback */
typedef struct _visibility_node
{
void *pCallerData;
/* Global array to hold client callbacks */
extern
/* Global array to hold client callbacks */
extern
/* Global variable to hold this pligin's ID */
extern MP_UINT32 g_pluginOwnerID;
/* Global variable to hold scsi_vhci file descriptor */
extern int g_scsi_vhci_fd;
/* Debug logging to system log enabled */
/* Global variable to hold sysevent handle */
extern sysevent_handle_t *g_SysEventHandle;
extern pthread_mutex_t g_visa_mutex;
extern pthread_mutex_t g_prop_mutex;
/* Used to add debug (log) info */
/* Returns an MP_STATUS code for an mp_iocdata_t.mp_errno code */
/* Returns an MP_OID_LIST that will hold "size" MP_OID elements */
/* Initializes the sysevent framework */
/* Implementation function for MP_GetAssociatedTPGOidList() */
/* Implementation function for MP_GetTargetPortGroupProperties() */
/* Implementation function for MP_GetTargetPortOidList() */
#ifdef __cplusplus
}
#endif
#endif /* _MP_UTILS_H */