store.cxx (73d9b18a) | store.cxx (ff8369f8) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 11 unchanged lines hidden (view full) --- 20 *************************************************************/ 21 22 23 24// MARKER(update_precomp.py): autogen include statement, do not remove 25#include "precompiled_store.hxx" 26 27#include "store/store.h" | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 11 unchanged lines hidden (view full) --- 20 *************************************************************/ 21 22 23 24// MARKER(update_precomp.py): autogen include statement, do not remove 25#include "precompiled_store.hxx" 26 27#include "store/store.h" |
28#include "store/dllapi.h" |
|
28 29#include <sal/types.h> 30#include <rtl/memory.h> 31#include <rtl/string.hxx> 32#include <rtl/ref.hxx> 33 34#include "object.hxx" 35#include "lockbyte.hxx" --- 33 unchanged lines hidden (view full) --- 69/*======================================================================== 70 * 71 * storeHandle implementation. 72 * 73 *======================================================================*/ 74/* 75 * store_acquireHandle. 76 */ | 29 30#include <sal/types.h> 31#include <rtl/memory.h> 32#include <rtl/string.hxx> 33#include <rtl/ref.hxx> 34 35#include "object.hxx" 36#include "lockbyte.hxx" --- 33 unchanged lines hidden (view full) --- 70/*======================================================================== 71 * 72 * storeHandle implementation. 73 * 74 *======================================================================*/ 75/* 76 * store_acquireHandle. 77 */ |
77storeError SAL_CALL store_acquireHandle ( | 78STORE_DLLPUBLIC storeError SAL_CALL store_acquireHandle ( |
78 storeHandle Handle 79) SAL_THROW_EXTERN_C() 80{ 81 IStoreHandle *pHandle = static_cast<IStoreHandle*>(Handle); 82 if (!pHandle) 83 return store_E_InvalidHandle; 84 85 pHandle->acquire(); 86 return store_E_None; 87} 88 89/* 90 * store_releaseHandle. 91 */ | 79 storeHandle Handle 80) SAL_THROW_EXTERN_C() 81{ 82 IStoreHandle *pHandle = static_cast<IStoreHandle*>(Handle); 83 if (!pHandle) 84 return store_E_InvalidHandle; 85 86 pHandle->acquire(); 87 return store_E_None; 88} 89 90/* 91 * store_releaseHandle. 92 */ |
92storeError SAL_CALL store_releaseHandle ( | 93STORE_DLLPUBLIC storeError SAL_CALL store_releaseHandle ( |
93 storeHandle Handle 94) SAL_THROW_EXTERN_C() 95{ 96 IStoreHandle *pHandle = static_cast<IStoreHandle*>(Handle); 97 if (!pHandle) 98 return store_E_InvalidHandle; 99 100 pHandle->release(); 101 return store_E_None; 102} 103 104/*======================================================================== 105 * 106 * storeFileHandle implementation. 107 * 108 *======================================================================*/ 109/* 110 * store_createMemoryFile. 111 */ | 94 storeHandle Handle 95) SAL_THROW_EXTERN_C() 96{ 97 IStoreHandle *pHandle = static_cast<IStoreHandle*>(Handle); 98 if (!pHandle) 99 return store_E_InvalidHandle; 100 101 pHandle->release(); 102 return store_E_None; 103} 104 105/*======================================================================== 106 * 107 * storeFileHandle implementation. 108 * 109 *======================================================================*/ 110/* 111 * store_createMemoryFile. 112 */ |
112storeError SAL_CALL store_createMemoryFile ( | 113STORE_DLLPUBLIC storeError SAL_CALL store_createMemoryFile ( |
113 sal_uInt16 nPageSize, 114 storeFileHandle *phFile 115) SAL_THROW_EXTERN_C() 116{ 117 if (!phFile) 118 return store_E_InvalidParameter; 119 *phFile = NULL; 120 --- 17 unchanged lines hidden (view full) --- 138 139 *phFile = (storeFileHandle)&(*xManager); 140 return store_E_None; 141} 142 143/* 144 * store_openFile. 145 */ | 114 sal_uInt16 nPageSize, 115 storeFileHandle *phFile 116) SAL_THROW_EXTERN_C() 117{ 118 if (!phFile) 119 return store_E_InvalidParameter; 120 *phFile = NULL; 121 --- 17 unchanged lines hidden (view full) --- 139 140 *phFile = (storeFileHandle)&(*xManager); 141 return store_E_None; 142} 143 144/* 145 * store_openFile. 146 */ |
146storeError SAL_CALL store_openFile ( | 147STORE_DLLPUBLIC storeError SAL_CALL store_openFile ( |
147 rtl_uString *pFilename, 148 storeAccessMode eAccessMode, 149 sal_uInt16 nPageSize, 150 storeFileHandle *phFile 151) SAL_THROW_EXTERN_C() 152{ 153 if (phFile) 154 *phFile = NULL; --- 21 unchanged lines hidden (view full) --- 176 177 *phFile = (storeFileHandle)&(*xManager); 178 return store_E_None; 179} 180 181/* 182 * store_closeFile. 183 */ | 148 rtl_uString *pFilename, 149 storeAccessMode eAccessMode, 150 sal_uInt16 nPageSize, 151 storeFileHandle *phFile 152) SAL_THROW_EXTERN_C() 153{ 154 if (phFile) 155 *phFile = NULL; --- 21 unchanged lines hidden (view full) --- 177 178 *phFile = (storeFileHandle)&(*xManager); 179 return store_E_None; 180} 181 182/* 183 * store_closeFile. 184 */ |
184storeError SAL_CALL store_closeFile ( | 185STORE_DLLPUBLIC storeError SAL_CALL store_closeFile ( |
185 storeFileHandle Handle 186) SAL_THROW_EXTERN_C() 187{ 188 OStorePageManager *pManager = 189 OStoreHandle<OStorePageManager>::query (Handle); 190 if (!pManager) 191 return store_E_InvalidHandle; 192 193 storeError eErrCode = pManager->close(); 194 pManager->release(); 195 return eErrCode; 196} 197 198/* 199 * store_flushFile. 200 */ | 186 storeFileHandle Handle 187) SAL_THROW_EXTERN_C() 188{ 189 OStorePageManager *pManager = 190 OStoreHandle<OStorePageManager>::query (Handle); 191 if (!pManager) 192 return store_E_InvalidHandle; 193 194 storeError eErrCode = pManager->close(); 195 pManager->release(); 196 return eErrCode; 197} 198 199/* 200 * store_flushFile. 201 */ |
201storeError SAL_CALL store_flushFile ( | 202STORE_DLLPUBLIC storeError SAL_CALL store_flushFile ( |
202 storeFileHandle Handle 203) SAL_THROW_EXTERN_C() 204{ 205 OStoreHandle<OStorePageManager> xManager ( 206 OStoreHandle<OStorePageManager>::query (Handle)); 207 if (!xManager.is()) 208 return store_E_InvalidHandle; 209 210 return xManager->flush(); 211} 212 213/* 214 * store_getFileRefererCount. 215 */ | 203 storeFileHandle Handle 204) SAL_THROW_EXTERN_C() 205{ 206 OStoreHandle<OStorePageManager> xManager ( 207 OStoreHandle<OStorePageManager>::query (Handle)); 208 if (!xManager.is()) 209 return store_E_InvalidHandle; 210 211 return xManager->flush(); 212} 213 214/* 215 * store_getFileRefererCount. 216 */ |
216storeError SAL_CALL store_getFileRefererCount ( | 217STORE_DLLPUBLIC storeError SAL_CALL store_getFileRefererCount ( |
217 storeFileHandle Handle, 218 sal_uInt32 *pnRefCount 219) SAL_THROW_EXTERN_C() 220{ 221 OStoreHandle<OStorePageManager> xManager ( 222 OStoreHandle<OStorePageManager>::query (Handle)); 223 if (!xManager.is()) 224 return store_E_InvalidHandle; 225 226 if (!pnRefCount) 227 return store_E_InvalidParameter; 228 229 *pnRefCount = xManager->getRefererCount(); 230 return store_E_None; 231} 232 233/* 234 * store_getFileSize. 235 */ | 218 storeFileHandle Handle, 219 sal_uInt32 *pnRefCount 220) SAL_THROW_EXTERN_C() 221{ 222 OStoreHandle<OStorePageManager> xManager ( 223 OStoreHandle<OStorePageManager>::query (Handle)); 224 if (!xManager.is()) 225 return store_E_InvalidHandle; 226 227 if (!pnRefCount) 228 return store_E_InvalidParameter; 229 230 *pnRefCount = xManager->getRefererCount(); 231 return store_E_None; 232} 233 234/* 235 * store_getFileSize. 236 */ |
236storeError SAL_CALL store_getFileSize ( | 237STORE_DLLPUBLIC storeError SAL_CALL store_getFileSize ( |
237 storeFileHandle Handle, 238 sal_uInt32 *pnSize 239) SAL_THROW_EXTERN_C() 240{ 241 OStoreHandle<OStorePageManager> xManager ( 242 OStoreHandle<OStorePageManager>::query (Handle)); 243 if (!xManager.is()) 244 return store_E_InvalidHandle; 245 246 if (!pnSize) 247 return store_E_InvalidParameter; 248 249 return xManager->size (*pnSize); 250} 251 252/* 253 * store_rebuildFile. 254 */ | 238 storeFileHandle Handle, 239 sal_uInt32 *pnSize 240) SAL_THROW_EXTERN_C() 241{ 242 OStoreHandle<OStorePageManager> xManager ( 243 OStoreHandle<OStorePageManager>::query (Handle)); 244 if (!xManager.is()) 245 return store_E_InvalidHandle; 246 247 if (!pnSize) 248 return store_E_InvalidParameter; 249 250 return xManager->size (*pnSize); 251} 252 253/* 254 * store_rebuildFile. 255 */ |
255storeError SAL_CALL store_rebuildFile ( | 256STORE_DLLPUBLIC storeError SAL_CALL store_rebuildFile ( |
256 rtl_uString *pSrcFilename, 257 rtl_uString *pDstFilename 258) SAL_THROW_EXTERN_C() 259{ 260 storeError eErrCode = store_E_None; 261 262 if (!(pSrcFilename && pDstFilename)) 263 return store_E_InvalidParameter; --- 20 unchanged lines hidden (view full) --- 284/*======================================================================== 285 * 286 * storeDirectoryHandle implementation. 287 * 288 *======================================================================*/ 289/* 290 * store_openDirectory. 291 */ | 257 rtl_uString *pSrcFilename, 258 rtl_uString *pDstFilename 259) SAL_THROW_EXTERN_C() 260{ 261 storeError eErrCode = store_E_None; 262 263 if (!(pSrcFilename && pDstFilename)) 264 return store_E_InvalidParameter; --- 20 unchanged lines hidden (view full) --- 285/*======================================================================== 286 * 287 * storeDirectoryHandle implementation. 288 * 289 *======================================================================*/ 290/* 291 * store_openDirectory. 292 */ |
292storeError SAL_CALL store_openDirectory ( | 293STORE_DLLPUBLIC storeError SAL_CALL store_openDirectory ( |
293 storeFileHandle hFile, 294 rtl_uString *pPath, 295 rtl_uString *pName, 296 storeAccessMode eAccessMode, 297 storeDirectoryHandle *phDirectory 298) SAL_THROW_EXTERN_C() 299{ 300 storeError eErrCode = store_E_None; --- 23 unchanged lines hidden (view full) --- 324 325 *phDirectory = (storeDirectoryHandle)&(*xDirectory); 326 return store_E_None; 327} 328 329/* 330 * store_closeDirectory. 331 */ | 294 storeFileHandle hFile, 295 rtl_uString *pPath, 296 rtl_uString *pName, 297 storeAccessMode eAccessMode, 298 storeDirectoryHandle *phDirectory 299) SAL_THROW_EXTERN_C() 300{ 301 storeError eErrCode = store_E_None; --- 23 unchanged lines hidden (view full) --- 325 326 *phDirectory = (storeDirectoryHandle)&(*xDirectory); 327 return store_E_None; 328} 329 330/* 331 * store_closeDirectory. 332 */ |
332storeError SAL_CALL store_closeDirectory ( | 333STORE_DLLPUBLIC storeError SAL_CALL store_closeDirectory ( |
333 storeDirectoryHandle Handle 334) SAL_THROW_EXTERN_C() 335{ 336 OStoreDirectory_Impl *pDirectory = 337 OStoreHandle<OStoreDirectory_Impl>::query (Handle); 338 if (!pDirectory) 339 return store_E_InvalidHandle; 340 341 pDirectory->release(); 342 return store_E_None; 343} 344 345/* 346 * store_findFirst. 347 */ | 334 storeDirectoryHandle Handle 335) SAL_THROW_EXTERN_C() 336{ 337 OStoreDirectory_Impl *pDirectory = 338 OStoreHandle<OStoreDirectory_Impl>::query (Handle); 339 if (!pDirectory) 340 return store_E_InvalidHandle; 341 342 pDirectory->release(); 343 return store_E_None; 344} 345 346/* 347 * store_findFirst. 348 */ |
348storeError SAL_CALL store_findFirst ( | 349STORE_DLLPUBLIC storeError SAL_CALL store_findFirst ( |
349 storeDirectoryHandle Handle, 350 storeFindData *pFindData 351) SAL_THROW_EXTERN_C() 352{ 353 OStoreHandle<OStoreDirectory_Impl> xDirectory ( 354 OStoreHandle<OStoreDirectory_Impl>::query (Handle)); 355 if (!xDirectory.is()) 356 return store_E_InvalidHandle; --- 7 unchanged lines hidden (view full) --- 364 // Find first. 365 pFindData->m_nReserved = (sal_uInt32)(~0); 366 return xDirectory->iterate (*pFindData); 367} 368 369/* 370 * store_findNext. 371 */ | 350 storeDirectoryHandle Handle, 351 storeFindData *pFindData 352) SAL_THROW_EXTERN_C() 353{ 354 OStoreHandle<OStoreDirectory_Impl> xDirectory ( 355 OStoreHandle<OStoreDirectory_Impl>::query (Handle)); 356 if (!xDirectory.is()) 357 return store_E_InvalidHandle; --- 7 unchanged lines hidden (view full) --- 365 // Find first. 366 pFindData->m_nReserved = (sal_uInt32)(~0); 367 return xDirectory->iterate (*pFindData); 368} 369 370/* 371 * store_findNext. 372 */ |
372storeError SAL_CALL store_findNext ( | 373STORE_DLLPUBLIC storeError SAL_CALL store_findNext ( |
373 storeDirectoryHandle Handle, 374 storeFindData *pFindData 375) SAL_THROW_EXTERN_C() 376{ 377 OStoreHandle<OStoreDirectory_Impl> xDirectory ( 378 OStoreHandle<OStoreDirectory_Impl>::query (Handle)); 379 if (!xDirectory.is()) 380 return store_E_InvalidHandle; --- 13 unchanged lines hidden (view full) --- 394/*======================================================================== 395 * 396 * storeStreamHandle implementation. 397 * 398 *======================================================================*/ 399/* 400 * store_openStream 401 */ | 374 storeDirectoryHandle Handle, 375 storeFindData *pFindData 376) SAL_THROW_EXTERN_C() 377{ 378 OStoreHandle<OStoreDirectory_Impl> xDirectory ( 379 OStoreHandle<OStoreDirectory_Impl>::query (Handle)); 380 if (!xDirectory.is()) 381 return store_E_InvalidHandle; --- 13 unchanged lines hidden (view full) --- 395/*======================================================================== 396 * 397 * storeStreamHandle implementation. 398 * 399 *======================================================================*/ 400/* 401 * store_openStream 402 */ |
402storeError SAL_CALL store_openStream ( | 403STORE_DLLPUBLIC storeError SAL_CALL store_openStream ( |
403 storeFileHandle hFile, 404 rtl_uString *pPath, 405 rtl_uString *pName, 406 storeAccessMode eAccessMode, 407 storeStreamHandle *phStream 408) SAL_THROW_EXTERN_C() 409{ 410 storeError eErrCode = store_E_None; --- 23 unchanged lines hidden (view full) --- 434 435 *phStream = (storeStreamHandle)&(*xLockBytes); 436 return store_E_None; 437} 438 439/* 440 * store_closeStream. 441 */ | 404 storeFileHandle hFile, 405 rtl_uString *pPath, 406 rtl_uString *pName, 407 storeAccessMode eAccessMode, 408 storeStreamHandle *phStream 409) SAL_THROW_EXTERN_C() 410{ 411 storeError eErrCode = store_E_None; --- 23 unchanged lines hidden (view full) --- 435 436 *phStream = (storeStreamHandle)&(*xLockBytes); 437 return store_E_None; 438} 439 440/* 441 * store_closeStream. 442 */ |
442storeError SAL_CALL store_closeStream ( | 443STORE_DLLPUBLIC storeError SAL_CALL store_closeStream ( |
443 storeStreamHandle Handle 444) SAL_THROW_EXTERN_C() 445{ 446 OStoreLockBytes *pLockBytes = 447 OStoreHandle<OStoreLockBytes>::query (Handle); 448 if (!pLockBytes) 449 return store_E_InvalidHandle; 450 451 pLockBytes->release(); 452 return store_E_None; 453} 454 455/* 456 * store_readStream. 457 */ | 444 storeStreamHandle Handle 445) SAL_THROW_EXTERN_C() 446{ 447 OStoreLockBytes *pLockBytes = 448 OStoreHandle<OStoreLockBytes>::query (Handle); 449 if (!pLockBytes) 450 return store_E_InvalidHandle; 451 452 pLockBytes->release(); 453 return store_E_None; 454} 455 456/* 457 * store_readStream. 458 */ |
458storeError SAL_CALL store_readStream ( | 459STORE_DLLPUBLIC storeError SAL_CALL store_readStream ( |
459 storeStreamHandle Handle, 460 sal_uInt32 nOffset, 461 void *pBuffer, 462 sal_uInt32 nBytes, 463 sal_uInt32 *pnDone 464) SAL_THROW_EXTERN_C() 465{ 466 OStoreHandle<OStoreLockBytes> xLockBytes ( --- 5 unchanged lines hidden (view full) --- 472 return store_E_InvalidParameter; 473 474 return xLockBytes->readAt (nOffset, pBuffer, nBytes, *pnDone); 475} 476 477/* 478 * store_writeStream. 479 */ | 460 storeStreamHandle Handle, 461 sal_uInt32 nOffset, 462 void *pBuffer, 463 sal_uInt32 nBytes, 464 sal_uInt32 *pnDone 465) SAL_THROW_EXTERN_C() 466{ 467 OStoreHandle<OStoreLockBytes> xLockBytes ( --- 5 unchanged lines hidden (view full) --- 473 return store_E_InvalidParameter; 474 475 return xLockBytes->readAt (nOffset, pBuffer, nBytes, *pnDone); 476} 477 478/* 479 * store_writeStream. 480 */ |
480storeError SAL_CALL store_writeStream ( | 481STORE_DLLPUBLIC storeError SAL_CALL store_writeStream ( |
481 storeStreamHandle Handle, 482 sal_uInt32 nOffset, 483 const void *pBuffer, 484 sal_uInt32 nBytes, 485 sal_uInt32 *pnDone 486) SAL_THROW_EXTERN_C() 487{ 488 OStoreHandle<OStoreLockBytes> xLockBytes ( --- 5 unchanged lines hidden (view full) --- 494 return store_E_InvalidParameter; 495 496 return xLockBytes->writeAt (nOffset, pBuffer, nBytes, *pnDone); 497} 498 499/* 500 * store_flushStream. 501 */ | 482 storeStreamHandle Handle, 483 sal_uInt32 nOffset, 484 const void *pBuffer, 485 sal_uInt32 nBytes, 486 sal_uInt32 *pnDone 487) SAL_THROW_EXTERN_C() 488{ 489 OStoreHandle<OStoreLockBytes> xLockBytes ( --- 5 unchanged lines hidden (view full) --- 495 return store_E_InvalidParameter; 496 497 return xLockBytes->writeAt (nOffset, pBuffer, nBytes, *pnDone); 498} 499 500/* 501 * store_flushStream. 502 */ |
502storeError SAL_CALL store_flushStream ( | 503STORE_DLLPUBLIC storeError SAL_CALL store_flushStream ( |
503 storeStreamHandle Handle 504) SAL_THROW_EXTERN_C() 505{ 506 OStoreHandle<OStoreLockBytes> xLockBytes ( 507 OStoreHandle<OStoreLockBytes>::query (Handle)); 508 if (!xLockBytes.is()) 509 return store_E_InvalidHandle; 510 511 return xLockBytes->flush(); 512} 513 514/* 515 * store_getStreamSize. 516 */ | 504 storeStreamHandle Handle 505) SAL_THROW_EXTERN_C() 506{ 507 OStoreHandle<OStoreLockBytes> xLockBytes ( 508 OStoreHandle<OStoreLockBytes>::query (Handle)); 509 if (!xLockBytes.is()) 510 return store_E_InvalidHandle; 511 512 return xLockBytes->flush(); 513} 514 515/* 516 * store_getStreamSize. 517 */ |
517storeError SAL_CALL store_getStreamSize ( | 518STORE_DLLPUBLIC storeError SAL_CALL store_getStreamSize ( |
518 storeStreamHandle Handle, 519 sal_uInt32 *pnSize 520) SAL_THROW_EXTERN_C() 521{ 522 OStoreHandle<OStoreLockBytes> xLockBytes ( 523 OStoreHandle<OStoreLockBytes>::query (Handle)); 524 if (!xLockBytes.is()) 525 return store_E_InvalidHandle; 526 527 if (!pnSize) 528 return store_E_InvalidParameter; 529 530 return xLockBytes->stat (*pnSize); 531} 532 533/* 534 * store_setStreamSize. 535 */ | 519 storeStreamHandle Handle, 520 sal_uInt32 *pnSize 521) SAL_THROW_EXTERN_C() 522{ 523 OStoreHandle<OStoreLockBytes> xLockBytes ( 524 OStoreHandle<OStoreLockBytes>::query (Handle)); 525 if (!xLockBytes.is()) 526 return store_E_InvalidHandle; 527 528 if (!pnSize) 529 return store_E_InvalidParameter; 530 531 return xLockBytes->stat (*pnSize); 532} 533 534/* 535 * store_setStreamSize. 536 */ |
536storeError SAL_CALL store_setStreamSize ( | 537STORE_DLLPUBLIC storeError SAL_CALL store_setStreamSize ( |
537 storeStreamHandle Handle, 538 sal_uInt32 nSize 539) SAL_THROW_EXTERN_C() 540{ 541 OStoreHandle<OStoreLockBytes> xLockBytes ( 542 OStoreHandle<OStoreLockBytes>::query (Handle)); 543 if (!xLockBytes.is()) 544 return store_E_InvalidHandle; --- 4 unchanged lines hidden (view full) --- 549/*======================================================================== 550 * 551 * Common storeDirectoryHandle and storeStreamHandle operations. 552 * 553 *======================================================================*/ 554/* 555 * store_attrib. 556 */ | 538 storeStreamHandle Handle, 539 sal_uInt32 nSize 540) SAL_THROW_EXTERN_C() 541{ 542 OStoreHandle<OStoreLockBytes> xLockBytes ( 543 OStoreHandle<OStoreLockBytes>::query (Handle)); 544 if (!xLockBytes.is()) 545 return store_E_InvalidHandle; --- 4 unchanged lines hidden (view full) --- 550/*======================================================================== 551 * 552 * Common storeDirectoryHandle and storeStreamHandle operations. 553 * 554 *======================================================================*/ 555/* 556 * store_attrib. 557 */ |
557storeError SAL_CALL store_attrib ( | 558STORE_DLLPUBLIC storeError SAL_CALL store_attrib ( |
558 storeFileHandle Handle, 559 rtl_uString *pPath, 560 rtl_uString *pName, 561 sal_uInt32 nMask1, 562 sal_uInt32 nMask2, 563 sal_uInt32 *pnAttrib 564) SAL_THROW_EXTERN_C() 565{ --- 24 unchanged lines hidden (view full) --- 590 if (pnAttrib) 591 *pnAttrib = nAttrib; 592 return eErrCode; 593} 594 595/* 596 * store_link. 597 */ | 559 storeFileHandle Handle, 560 rtl_uString *pPath, 561 rtl_uString *pName, 562 sal_uInt32 nMask1, 563 sal_uInt32 nMask2, 564 sal_uInt32 *pnAttrib 565) SAL_THROW_EXTERN_C() 566{ --- 24 unchanged lines hidden (view full) --- 591 if (pnAttrib) 592 *pnAttrib = nAttrib; 593 return eErrCode; 594} 595 596/* 597 * store_link. 598 */ |
598storeError SAL_CALL store_link ( | 599STORE_DLLPUBLIC storeError SAL_CALL store_link ( |
599 storeFileHandle Handle, 600 rtl_uString *pSrcPath, rtl_uString *pSrcName, 601 rtl_uString *pDstPath, rtl_uString *pDstName 602) SAL_THROW_EXTERN_C() 603{ 604 storeError eErrCode = store_E_None; 605 606 OStoreHandle<OStorePageManager> xManager ( --- 33 unchanged lines hidden (view full) --- 640 641 // Link 'Source' hard to 'Destination'. 642 return xManager->link (aSrcKey, aDstKey); 643} 644 645/* 646 * store_symlink. 647 */ | 600 storeFileHandle Handle, 601 rtl_uString *pSrcPath, rtl_uString *pSrcName, 602 rtl_uString *pDstPath, rtl_uString *pDstName 603) SAL_THROW_EXTERN_C() 604{ 605 storeError eErrCode = store_E_None; 606 607 OStoreHandle<OStorePageManager> xManager ( --- 33 unchanged lines hidden (view full) --- 641 642 // Link 'Source' hard to 'Destination'. 643 return xManager->link (aSrcKey, aDstKey); 644} 645 646/* 647 * store_symlink. 648 */ |
648storeError SAL_CALL store_symlink ( | 649STORE_DLLPUBLIC storeError SAL_CALL store_symlink ( |
649 storeFileHandle Handle, 650 rtl_uString *pSrcPath, rtl_uString *pSrcName, 651 rtl_uString *pDstPath, rtl_uString *pDstName 652) SAL_THROW_EXTERN_C() 653{ 654 storeError eErrCode = store_E_None; 655 656 OStoreHandle<OStorePageManager> xManager ( --- 26 unchanged lines hidden (view full) --- 683 pSrcName->buffer, pSrcName->length, RTL_TEXTENCODING_UTF8); 684 685 return xManager->symlink (aSrcPath.pData, aSrcName.pData, aDstKey); 686} 687 688/* 689 * store_rename. 690 */ | 650 storeFileHandle Handle, 651 rtl_uString *pSrcPath, rtl_uString *pSrcName, 652 rtl_uString *pDstPath, rtl_uString *pDstName 653) SAL_THROW_EXTERN_C() 654{ 655 storeError eErrCode = store_E_None; 656 657 OStoreHandle<OStorePageManager> xManager ( --- 26 unchanged lines hidden (view full) --- 684 pSrcName->buffer, pSrcName->length, RTL_TEXTENCODING_UTF8); 685 686 return xManager->symlink (aSrcPath.pData, aSrcName.pData, aDstKey); 687} 688 689/* 690 * store_rename. 691 */ |
691storeError SAL_CALL store_rename ( | 692STORE_DLLPUBLIC storeError SAL_CALL store_rename ( |
692 storeFileHandle Handle, 693 rtl_uString *pSrcPath, rtl_uString *pSrcName, 694 rtl_uString *pDstPath, rtl_uString *pDstName 695) SAL_THROW_EXTERN_C() 696{ 697 storeError eErrCode = store_E_None; 698 699 OStoreHandle<OStorePageManager> xManager ( --- 26 unchanged lines hidden (view full) --- 726 pDstName->buffer, pDstName->length, RTL_TEXTENCODING_UTF8); 727 728 return xManager->rename (aSrcKey, aDstPath.pData, aDstName.pData); 729} 730 731/* 732 * store_remove. 733 */ | 693 storeFileHandle Handle, 694 rtl_uString *pSrcPath, rtl_uString *pSrcName, 695 rtl_uString *pDstPath, rtl_uString *pDstName 696) SAL_THROW_EXTERN_C() 697{ 698 storeError eErrCode = store_E_None; 699 700 OStoreHandle<OStorePageManager> xManager ( --- 26 unchanged lines hidden (view full) --- 727 pDstName->buffer, pDstName->length, RTL_TEXTENCODING_UTF8); 728 729 return xManager->rename (aSrcKey, aDstPath.pData, aDstName.pData); 730} 731 732/* 733 * store_remove. 734 */ |
734storeError SAL_CALL store_remove ( | 735STORE_DLLPUBLIC storeError SAL_CALL store_remove ( |
735 storeFileHandle Handle, 736 rtl_uString *pPath, 737 rtl_uString *pName 738) SAL_THROW_EXTERN_C() 739{ 740 storeError eErrCode = store_E_None; 741 742 OStoreHandle<OStorePageManager> xManager ( --- 19 unchanged lines hidden --- | 736 storeFileHandle Handle, 737 rtl_uString *pPath, 738 rtl_uString *pName 739) SAL_THROW_EXTERN_C() 740{ 741 storeError eErrCode = store_E_None; 742 743 OStoreHandle<OStorePageManager> xManager ( --- 19 unchanged lines hidden --- |