Lines Matching refs:pItemImpl
883 DirectoryItem_Impl *pItemImpl = NULL; in _osl_getNextDrive() local
908 pItemImpl = (DirectoryItem_Impl*) rtl_allocateMemory(sizeof(DirectoryItem_Impl)); in _osl_getNextDrive()
909 if ( !pItemImpl ) in _osl_getNextDrive()
912 memset( pItemImpl, 0, sizeof(DirectoryItem_Impl) ); in _osl_getNextDrive()
913 pItemImpl->uType = DIRECTORYITEM_DRIVE; in _osl_getNextDrive()
914 pItemImpl->nRefCount = 1; in _osl_getNextDrive()
916 rtl_string2UString( &pItemImpl->ustrDrive, buffer, 3, in _osl_getNextDrive()
918 OSL_ASSERT(pItemImpl->ustrDrive != 0); in _osl_getNextDrive()
921 *pItem = (oslDirectoryItem) pItemImpl; in _osl_getNextDrive()
1034 DirectoryItem_Impl *pItemImpl = NULL; in osl_getNextDirectoryItem() local
1053 pItemImpl = (DirectoryItem_Impl*) rtl_allocateMemory(sizeof(DirectoryItem_Impl)); in osl_getNextDirectoryItem()
1054 if ( !pItemImpl ) in osl_getNextDirectoryItem()
1057 memset( pItemImpl, 0, sizeof(DirectoryItem_Impl) ); in osl_getNextDirectoryItem()
1058 pItemImpl->uType = DIRECTORYITEM_FILE; in osl_getNextDirectoryItem()
1059 pItemImpl->nRefCount = 1; in osl_getNextDirectoryItem()
1060 pItemImpl->d_attr = pEntry->d_attr; in osl_getNextDirectoryItem()
1067 osl_systemPathMakeAbsolutePath(pDirImpl->ustrPath, ustrFileName, &pItemImpl->ustrFilePath); in osl_getNextDirectoryItem()
1070 *pItem = (oslDirectoryItem)pItemImpl; in osl_getNextDirectoryItem()
1158 DirectoryItem_Impl* pItemImpl = in osl_getDirectoryItem() local
1161 if ( !pItemImpl ) in osl_getDirectoryItem()
1166 memset( pItemImpl, 0, sizeof(DirectoryItem_Impl) ); in osl_getDirectoryItem()
1167 pItemImpl->uType = DIRECTORYITEM_SERVER; in osl_getDirectoryItem()
1168 pItemImpl->nRefCount = 1; in osl_getDirectoryItem()
1169 rtl_uString_assign( &pItemImpl->ustrFilePath, strSysFilePath ); in osl_getDirectoryItem()
1171 *pItem = pItemImpl; in osl_getDirectoryItem()
1177 DirectoryItem_Impl* pItemImpl = in osl_getDirectoryItem() local
1180 if ( !pItemImpl ) in osl_getDirectoryItem()
1185 memset( pItemImpl, 0, sizeof(DirectoryItem_Impl) ); in osl_getDirectoryItem()
1186 pItemImpl->uType = DIRECTORYITEM_DRIVE; in osl_getDirectoryItem()
1187 pItemImpl->nRefCount = 1; in osl_getDirectoryItem()
1188 rtl_uString_assign( &pItemImpl->ustrDrive, strSysFilePath ); in osl_getDirectoryItem()
1190 if ( pItemImpl->ustrDrive->buffer[pItemImpl->ustrDrive->length-1] != sal_Unicode('\\') ) in osl_getDirectoryItem()
1191 rtl_uString_newConcat( &pItemImpl->ustrDrive, in osl_getDirectoryItem()
1192 pItemImpl->ustrDrive, rtl::OUString::createFromAscii( "\\" ).pData); in osl_getDirectoryItem()
1194 *pItem = pItemImpl; in osl_getDirectoryItem()
1206 DirectoryItem_Impl *pItemImpl = in osl_getDirectoryItem() local
1209 memset( pItemImpl, 0, sizeof(DirectoryItem_Impl) ); in osl_getDirectoryItem()
1210 pItemImpl->uType = DIRECTORYITEM_FILE; in osl_getDirectoryItem()
1211 pItemImpl->nRefCount = 1; in osl_getDirectoryItem()
1212 rtl_uString_assign( &pItemImpl->ustrFilePath, strSysFilePath ); in osl_getDirectoryItem()
1214 *pItem = pItemImpl; in osl_getDirectoryItem()
1235 DirectoryItem_Impl *pItemImpl = (DirectoryItem_Impl *)Item; in osl_acquireDirectoryItem() local
1237 if ( !pItemImpl ) in osl_acquireDirectoryItem()
1240 pItemImpl->nRefCount++; in osl_acquireDirectoryItem()
1251 DirectoryItem_Impl *pItemImpl = (DirectoryItem_Impl *)Item; in osl_releaseDirectoryItem() local
1253 if ( !pItemImpl ) in osl_releaseDirectoryItem()
1256 if ( ! --pItemImpl->nRefCount ) in osl_releaseDirectoryItem()
1258 if (pItemImpl->ustrFilePath) in osl_releaseDirectoryItem()
1259 rtl_uString_release( pItemImpl->ustrFilePath ); in osl_releaseDirectoryItem()
1260 if (pItemImpl->ustrDrive) in osl_releaseDirectoryItem()
1261 rtl_uString_release( pItemImpl->ustrDrive ); in osl_releaseDirectoryItem()
1262 rtl_freeMemory( pItemImpl ); in osl_releaseDirectoryItem()
2624 DirectoryItem_Impl *pItemImpl = (DirectoryItem_Impl *)Item; in _osl_getDriveInfo() local
2628 if ( !pItemImpl ) in _osl_getDriveInfo()
2633 cDrive[0] = pItemImpl->ustrDrive->buffer[0]; in _osl_getDriveInfo()
2636 cRoot[0] = pItemImpl->ustrDrive->buffer[0]; in _osl_getDriveInfo()
2642 if ( pItemImpl->ustrDrive->buffer[0] == '\\' && in _osl_getDriveInfo()
2643 pItemImpl->ustrDrive->buffer[1] == '\\' ) in _osl_getDriveInfo()
2645 LPCWSTR lpFirstBkSlash = wcschr( (const wchar_t*)&pItemImpl->ustrDrive->buffer[2], '\\' ); in _osl_getDriveInfo()
2691 rtl_uString_newFromStr( &ustrSystemPath, pItemImpl->ustrDrive->buffer ); in _osl_getDriveInfo()
2705 DirectoryItem_Impl *pItemImpl = (DirectoryItem_Impl *)Item; in osl_getFileStatus() local
2708 if ( !pItemImpl ) in osl_getFileStatus()
2711 if ( pItemImpl->uType == DIRECTORYITEM_DRIVE) in osl_getFileStatus()
2714 osl::lstat(pItemImpl->ustrFilePath, file_stat); in osl_getFileStatus()
2758 osl_systemPathGetFileNameOrLastDirectoryPart(pItemImpl->ustrFilePath, &pStatus->ustrFileName); in osl_getFileStatus()
2778 pStatus->uAttributes = pItemImpl->d_attr; in osl_getFileStatus()
2788 rtl_uString_newFromStr( &ustrFullPath, rtl_uString_getStr(pItemImpl->ustrFilePath) ); in osl_getFileStatus()
2799 rtl_uString_newFromStr( &ustrFullPath, rtl_uString_getStr(pItemImpl->ustrFilePath) ); in osl_getFileStatus()