ACAPI_TeamworkControl_GetHotlinkCacheManagementOwner
팀워크 모드에서 Hotlink/XRef Management의 현재 소유자를 제공합니다.
GSErrCode ACAPI_TeamworkControl_GetHotlinkCacheManagementOwner ( short* owner );
파라미터
- owner
- [out] 존재할 경우 현재 소유자의 userId입니다. (
NULL
이 아니어야 함)
리턴 값
NoError
- 함수가 성공적으로 완료되었습니다.
APIERR_BADPARS
- 주어진 파라미터가 NULL입니다.
APIERR_NOPLAN
- 열린 프로젝트가 없습니다.
APIERR_NOTEAMWORKPROJECT
- 현재 프로젝트는 팀워크 프로젝트가 아닙니다.
다른 공통 오류들에 대해서는 오류 코드들의 리스트를 보십시오.
설명
Hotlink/XRef Management의 현재 소유자를 가져오려면 이 함수를 사용하십시오.
APIEnv_ProjectSharingID 함수 코드와 함께 ACAPI_Environment 함수를 호출하여 얻을 수 있는 API_SharingInfo structure로부터 소유자에 대한 더 많은 것을 알아낼 수 있습니다.
APIEnv_ProjectID 함수 코드와 함께 ACAPI_Environment 함수를 호출하여 얻을 수 있는 API_ProjectInfo structure로부터 현재 팀워크 클라이언트의 userId를 얻을 수 있습니다.
만약 Hotlink/XRef Management를 아무도 예약하지 않았으면 그 결과는 0이 나올 것입니다.
예제
short owner; GSErrCode err = ACAPI_GetHotlinkCacheManagementOwner (&owner); if (err == NoError) { API_ProjectInfo projectInfo; ACAPI_Environment (APIEnv_ProjectID, &projectInfo, NULL); if (projectInfo.userId == owner) ACAPI_WriteReport ("The Hotlink/XRef Management is being reserved by this client.", true); }
요구사항
- 버전: API 18 또는 이후
- 헤더: ACAPinc.h
참고사항
ACAPI_TeamworkControl_ReserveHotlinkCacheManagement
ACAPI_TeamworkControl_ReleaseHotlinkCacheManagement
팀워크 제어
API 함수