Current File : //usr/include/libsun_ima.h
/*
 * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
 */

/* header file for iSCSI tunable parameters properties function */

#ifndef	_LIBSUN_IMA_H
#define	_LIBSUN_IMA_H

#define	ISCSI_TUNABLE_MAX	3600
#define	ISCSI_TUNABLE_MIN	0
#ifdef __cplusplus
extern "C" {
#endif

#include <ima.h>

typedef enum {
	ISCSI_RX_TIMEOUT_VALUE = 1,
	ISCSI_CONN_DEFAULT_LOGIN_MAX = 2,
	ISCSI_LOGIN_POLLING_DELAY = 3
} ISCSI_TUNABLE_OBJECT_TYPE;

typedef struct _ISCSI_TUNABLE_PARAM {
	ISCSI_TUNABLE_OBJECT_TYPE tunable_objectType;
	IMA_CHAR *tunable_objectValue;
} ISCSI_TUNABLE_PARAM;

IMA_API IMA_STATUS SUN_IMA_SetTunableProperties(
		IMA_OID oid,
		ISCSI_TUNABLE_PARAM *param
);

IMA_API IMA_STATUS SUN_IMA_GetTunableProperties(
		IMA_OID oid,
		ISCSI_TUNABLE_PARAM *param
);

#ifdef __cplusplus
}
#endif

#endif /* _LIBSUN_IMA_H */