#ifndef __PluginData_H__
#define __PluginData_H__ 1
#include <DirectoryServiceCore/PrivateTypes.h>
#include <sys/types.h>
typedef enum {
keAttrReadOnly = 0x00000001,
keAttrReadWrite = 0x00000002
} eAttributeFlags;
typedef enum {
kUnknownState = 0x00000000,
kActive = 0x00000001,
kInactive = 0x00000002,
kInitalized = 0x00000004,
kInitialized = 0x00000004,
kUninitialized = 0x00000008,
kFailedToInit = 0x00000010
} ePluginState;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirReference fInDirRef;
tDataBufferPtr fOutDataBuff;
UInt32 fOutNodeCount;
tContextData fIOContinueData;
} sGetDirNodeList;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirReference fInDirReference;
tContextData fInContinueData;
} sReleaseContinueData;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirReference fInDirRef;
tDataBufferPtr fOutDataBuff;
tDataListPtr fInNodeNamePattern;
tDirPatternMatch fInPatternMatchType;
UInt32 fOutDirNodeCount;
tContextData fOutContinueData;
} sFindDirNodes;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirReference fInDirRef;
tDataListPtr fInDirNodeName;
tDirNodeReference fOutNodeRef;
uid_t fInUID;
uid_t fInEffectiveUID;
} sOpenDirNode;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirReference fInNodeRef;
} sCloseDirNode;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirNodeReference fInNodeRef;
tDataListPtr fInDirNodeInfoTypeList;
tDataBufferPtr fOutDataBuff;
bool fInAttrInfoOnly;
UInt32 fOutAttrInfoCount;
tAttributeListRef fOutAttrListRef;
tContextData fOutContinueData;
} sGetDirNodeInfo;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirNodeReference fInNodeRef;
tDataBufferPtr fInDataBuff;
tDataListPtr fInRecNameList;
tDirPatternMatch fInPatternMatch;
tDataListPtr fInRecTypeList;
tDataListPtr fInAttribTypeList;
bool fInAttribInfoOnly;
UInt32 fOutRecEntryCount;
tContextData fIOContinueData;
} sGetRecordList;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirNodeReference fInNodeRef;
tDataBufferPtr fInOutDataBuff;
UInt32 fInRecEntryIndex;
tAttributeListRef fOutAttrListRef;
tRecordEntryPtr fOutRecEntryPtr;
} sGetRecordEntry;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirNodeReference fInNodeRef;
tDataBufferPtr fInOutDataBuff;
tAttributeListRef fInAttrListRef;
UInt32 fInAttrInfoIndex;
tAttributeValueListRef fOutAttrValueListRef;
tAttributeEntryPtr fOutAttrInfoPtr;
} sGetAttributeEntry;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirNodeReference fInNodeRef;
tDataBufferPtr fInOutDataBuff;
UInt32 fInAttrValueIndex;
tAttributeValueListRef fInAttrValueListRef;
tAttributeValueEntryPtr fOutAttrValue;
} sGetAttributeValue;
typedef struct {
UInt32 fType;
SInt32 fResult;
tAttributeListRef fInAttributeListRef;
} sCloseAttributeList;
typedef struct {
UInt32 fType;
SInt32 fResult;
tAttributeValueListRef fInAttributeValueListRef;
} sCloseAttributeValueList;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirNodeReference fInNodeRef;
tDataNodePtr fInRecType;
tDataNodePtr fInRecName;
tRecordReference fOutRecRef;
} sOpenRecord;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
tRecordEntryPtr fOutRecInfo;
} sGetRecRefInfo;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
tDataNodePtr fInAttrType;
tAttributeEntryPtr fOutAttrInfoPtr;
} sGetRecAttribInfo;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
tDataNodePtr fInAttrType;
UInt32 fInValueID;
tAttributeValueEntryPtr fOutEntryPtr;
} sGetRecordAttributeValueByID;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
tDataNodePtr fInAttrType;
UInt32 fInAttrValueIndex;
tAttributeValueEntryPtr fOutEntryPtr;
} sGetRecordAttributeValueByIndex;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
tDataNodePtr fInAttrType;
tDataNodePtr fInAttrValue;
tAttributeValueEntryPtr fOutEntryPtr;
} sGetRecordAttributeValueByValue;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
} sFlushRecord;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
} sCloseRecord;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
tDataNodePtr fInNewRecName;
} sSetRecordName;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
tDataNodePtr fInNewRecType;
} sSetRecordType;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
} sDeleteRecord;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirNodeReference fInNodeRef;
tDataNodePtr fInRecType;
tDataNodePtr fInRecName;
bool fInOpen;
tRecordReference fOutRecRef;
} sCreateRecord;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
tDataNodePtr fInNewAttr;
tAccessControlEntryPtr fInNewAttrAccess;
tDataNodePtr fInFirstAttrValue;
} sAddAttribute;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
tDataNodePtr fInAttribute;
} sRemoveAttribute;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
tDataNodePtr fInAttrType;
tDataNodePtr fInAttrValue;
} sAddAttributeValue;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
tDataNodePtr fInAttrType;
UInt32 fInAttrValueID;
} sRemoveAttributeValue;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
tDataNodePtr fInAttrType;
tAttributeValueEntryPtr fInAttrValueEntry;
} sSetAttributeValue;
typedef struct {
UInt32 fType;
SInt32 fResult;
tRecordReference fInRecRef;
tDataNodePtr fInAttrType;
tDataListPtr fInAttrValueList;
} sSetAttributeValues;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirNodeReference fInNodeRef;
tDataNodePtr fInAuthMethod;
bool fInDirNodeAuthOnlyFlag;
tDataBufferPtr fInAuthStepData;
tDataBufferPtr fOutAuthStepDataResponse;
tContextData fIOContinueData;
} sDoDirNodeAuth;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirNodeReference fInNodeRef;
tDataNodePtr fInAuthMethod;
bool fInDirNodeAuthOnlyFlag;
tDataBufferPtr fInAuthStepData;
tDataBufferPtr fOutAuthStepDataResponse;
tContextData fIOContinueData;
tDataNodePtr fInRecordType;
} sDoDirNodeAuthOnRecordType;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirNodeReference fInNodeRef;
tDataBufferPtr fOutDataBuff;
tDataListPtr fInRecTypeList;
tDataNodePtr fInAttrType;
tDirPatternMatch fInPattMatchType;
tDataNodePtr fInPatt2Match;
UInt32 fOutMatchRecordCount;
tContextData fIOContinueData;
} sDoAttrValueSearch;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirNodeReference fInNodeRef;
tDataBufferPtr fOutDataBuff;
tDataListPtr fInRecTypeList;
tDataNodePtr fInAttrType;
tDirPatternMatch fInPattMatchType;
tDataListPtr fInPatterns2MatchList;
UInt32 fOutMatchRecordCount;
tContextData fIOContinueData;
} sDoMultiAttrValueSearch;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirNodeReference fInNodeRef;
tDataBufferPtr fOutDataBuff;
tDataListPtr fInRecTypeList;
tDataNodePtr fInAttrType;
tDirPatternMatch fInPattMatchType;
tDataNodePtr fInPatt2Match;
UInt32 fOutMatchRecordCount;
tContextData fIOContinueData;
tDataListPtr fInAttrTypeRequestList;
bool fInAttrInfoOnly;
} sDoAttrValueSearchWithData;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirNodeReference fInNodeRef;
tDataBufferPtr fOutDataBuff;
tDataListPtr fInRecTypeList;
tDataNodePtr fInAttrType;
tDirPatternMatch fInPattMatchType;
tDataListPtr fInPatterns2MatchList;
UInt32 fOutMatchRecordCount;
tContextData fIOContinueData;
tDataListPtr fInAttrTypeRequestList;
bool fInAttrInfoOnly;
} sDoMultiAttrValueSearchWithData;
typedef struct {
UInt32 fType;
SInt32 fResult;
tDirNodeReference fInNodeRef;
UInt32 fInRequestCode;
tDataBufferPtr fInRequestData;
tDataBufferPtr fOutRequestResponse;
tDirNodeReference fInNodeRefMap; } sDoPlugInCustomCall;
typedef struct {
UInt32 fType;
SInt32 fResult;
} sNetworkTransitionValue;
typedef struct {
UInt32 fType;
SInt32 fResult;
void *fContextData;
} sHeader;
#endif // __PluginData_H__