skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 1:... HP Open Source Security for OpenVMS Volume 1:...
go to beginning of reference: API FunctionsAPI Functions
go to previous page: DL_ChangeDbOwnerDL_ChangeDbOwner
go to next page: DL_DataAbortQueryDL_DataAbortQuery
end of book navigation links


DL_CreateRelation
Library
Description
Errors
 Parameters
Return Value
See Also

NAME

DL_CreateRelation: CSSM_DL_CreateRelation - Create a new persistent relation (CDSA)

SYNOPSIS  

# include <cssm.h>

API:CSSM_RETURN CSSMAPI CSSM_DL_CreateRelation(CSSM_DL_DB_HANDLE DLDBHandle,CSSM_DB_RECORDTYPE RelationID,const char *RelationName,uint32 NumberOfAttributes,const CSSM_DB_SCHEMA_ATTRIBUTE_INFO *pAttributeInfo,uint32 NumberOfIndexes,const CSSM_DB_SCHEMA_INDEX_INFO *pIndexInfo)SPI:CSSM_RETURN CSSMDLI DL_CreateRelation(CSSM_DL_DB_HANDLE DLDBHandle,CSSM_DB_RECORDTYPE RelationID,const char *RelationName,uint32 NumberOfAttributes,const CSSM_DB_SCHEMA_ATTRIBUTE_INFO *pAttributeInfo,uint32 NumberOfIndexes,const CSSM_DB_SCHEMA_INDEX_INFO *pIndexInfo)


return to top LIBRARY  

Common Security Services Manager library (cdsa$incssm300_shr.exe)


return to top PARAMETERS  

DLDBHandle (input)
 The handle pair that describes the add-in data storagelibrary module to be used to perform this function and the opendata store in which to insert the new relation record. The databaseshould be opened in administrative mode using the CSSM_DB_ACCESS_PRIVILEGEDflag.
RelationID (input)
 Indicates the type of relation record being addedto the data store.
RelationName (input)
 Indicates the name of the relation being added tothe data store.
NumberOfAttributes (input)
 Indicates the number of attributes specified in pAttributeInfo.
pAttributeInfo (input)
 A list of structures containing the meta information(schema) describing the attributes for the relation being addedto the specified data store. The list contains at most one entryper attribute in the specified record type.
NumberOfIndexes (input)
 Indicates the number of indexes specified in pIndexInfo.
pIndexInfo (input)
 A list of structures containing the meta information(schema) describing the indexes for the relation being added tothe specified data store. The list contains at most one entry per indexin the specified record type.


return to top DESCRIPTION  

This function creates a new persistent relation of the specifiedtype by inserting it into the specified data store. The pAttributeInfo and pIndexInfo specifythe values contained in the new relation record.


return to top RETURN VALUE  

A CSSM_RETURN value indicating success or specifying a particularerror condition. The value CSSM_OK indicates success. All othervalues represent an error condition.


return to top ERRORS  

Errors are described in the CDSA Technical Standard.
CSSMERR_DL_FIELD_SPECIFIED_MULTIPLECSSMERR_DL_INVALID_ATTRIBUTE_INFOCSSMERR_DL_INVALID_DB_HANDLECSSMERR_DL_INVALID_INDEX_INFOCSSMERR_DL_INVALID_RECORDTYPE


return to top SEE ALSO  

Books

Intel CDSA Application Developer's Guide

Online Help

Functions for the CSSM API:

CSSM_DL_DestroyRelation

Functions for the DL SPI:

DL_DestroyRelation


go to previous page: DL_ChangeDbOwnerDL_ChangeDbOwner
go to next page: DL_DataAbortQueryDL_DataAbortQuery