Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


 
Opens the specified repository for the specified access mode. No access is permitted to a repository before it is opened.
The legal access modes are:
sdaiRO : open for read only operations.
sdaiRW : open for read and write operations.
Related functions: edmiOpenRepositoryBN , sdaiOpenRepository , and sdaiOpenRepositoryBN
Header:
#include "sdai.h"
Prototype:
EdmiError edmiOpenRepository (SdaiRepository repositoryId,
                               SdaiAccessMode mode); 
Arguments:

repositoryId

A numeric repositoryID that uniquely identifies the repository to be opened.

mode

The open mode of the repository. (sdaiRO/sdaiRW)

Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
EdmiError rstat;
SdaiRepository repositoryId;
. . .
if (rstat = edmiOpenRepository (repositoryId, sdaiRW)) {
/* Error in operation */ 
printf("\nError: %s in edmiOpenRepository\n", 
edmiGetErrorText(rstat)); 
goto error; 
}
. . .

  • No labels