#ifndef _STORE_H
#define _STORE_H
#ifdef __cplusplus
extern "C" {
#endif
#include <libnvpair.h>
#define STMF_PS_SUCCESS 0
#define STMF_PS_ERROR 1
#define STMF_PS_ERROR_MEMBER_NOT_FOUND 2
#define STMF_PS_ERROR_GROUP_NOT_FOUND 3
#define STMF_PS_ERROR_NOT_FOUND 4
#define STMF_PS_ERROR_EXISTS 5
#define STMF_PS_ERROR_NOMEM 6
#define STMF_PS_ERROR_RETRY 7
#define STMF_PS_ERROR_BUSY 8
#define STMF_PS_ERROR_SERVICE_NOT_FOUND 9
#define STMF_PS_ERROR_INVALID_ARG 10
#define STMF_PS_ERROR_VERSION_MISMATCH 11
#define STMF_PS_ERROR_PROV_DATA_STALE 12
int psAddHostGroupMember(char *groupName, char *memberName);
int psAddTargetGroupMember(char *groupName, char *memberName);
int psAddViewEntry(stmfGuid *lu, stmfViewEntry *viewEntry);
int psCreateHostGroup(char *groupName);
int psDeleteHostGroup(char *groupName);
int psCreateTargetGroup(char *groupName);
int psDeleteTargetGroup(char *groupName);
int psGetViewEntry(stmfGuid *lu, uint32_t viewEntryIndex, stmfViewEntry *ve);
int psGetLogicalUnitList(stmfGuidList **guidList);
int psRemoveHostGroupMember(char *groupName, char *memberName);
int psRemoveTargetGroupMember(char *groupName, char *memberName);
int psRemoveViewEntry(stmfGuid *lu, uint32_t viewEntryIndex);
int psGetHostGroupList(stmfGroupList **groupList);
int psGetTargetGroupList(stmfGroupList **groupList);
int psGetHostGroupMemberList(char *groupName, stmfGroupProperties **groupList);
int psGetTargetGroupMemberList(char *groupName,
stmfGroupProperties **groupList);
int psGetViewEntryList(stmfGuid *lu, stmfViewEntryList **viewEntryList);
int psCheckService();
int psSetProviderData(char *providerName, nvlist_t *nvl, int providerType,
uint64_t *setHandle);
int psGetProviderData(char *providerName, nvlist_t **nvl, int providerType,
uint64_t *setHandle);
int psGetProviderDataList(stmfProviderList **providerList);
int psClearProviderData(char *providerName, int providerType);
int psSetServicePersist(uint8_t persistType);
int psGetServicePersist(uint8_t *persistType);
int psSetStmfProp(int propType, char *propVal);
int psGetStmfProp(int propType, char *propVal);
#ifdef __cplusplus
}
#endif
#endif