FSCopyObject.h File Reference

Mac OSX updater program. More...

#include <stdio.h>

Include dependency graph for FSCopyObject.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DEBUG   1
#define QuoteExceptionString(x)   #x
#define dwarning(s)   do { printf s; fflush(stderr); } while( 0 )
#define mycheck_noerr(error)
#define mycheck(assertion)
#define myverify(assertion)   mycheck(assertion)
#define myverify_noerr(assertion)   mycheck_noerr( (assertion) )
#define CallCopyObjectFilterProc(userRoutine, containerChanged, currentLevel, currentOSErr, catalogInfo, ref, spec, name, yourDataPtr)   (*(userRoutine))((containerChanged), (currentLevel), (currentOSErr), (catalogInfo), (ref), (spec), (name), (yourDataPtr))

Typedefs

typedef UInt32 DupeAction
typedef ItemCount currentLevel
typedef ItemCount OSErr currentOSErr
typedef ItemCount OSErr const
FSCatalogInfo * 
catalogInfo
typedef ItemCount OSErr const
FSCatalogInfo const FSRef * 
ref
typedef ItemCount OSErr const
FSCatalogInfo const FSRef
const FSSpec * 
spec
typedef ItemCount OSErr const
FSCatalogInfo const FSRef
const FSSpec const HFSUniStr255 * 
name
typedef ItemCount OSErr const
FSCatalogInfo const FSRef
const FSSpec const HFSUniStr255
void
yourDataPtr

Enumerations

enum  { kDupeActionStandard, kDupeActionReplace, kDupeActionRename }

Functions

typedef CALLBACK_API (OSErr, CopyObjectFilterProcPtr)(Boolean containerChanged
OSErr FSCopyObject (const FSRef *source, const FSRef *destDir, ItemCount maxLevels, FSCatalogInfoBitmap whichInfo, DupeAction dupeAction, const HFSUniStr255 *newName, Boolean wantFSSpec, Boolean wantName, CopyObjectFilterProcPtr filterProcPtr, void *yourDataPtr, FSRef *newObjectRef, FSSpec *newObjectSpec)
OSErr FSDeleteObjects (const FSRef *source)


Detailed Description

Mac OSX updater program.

LicenseInfo
firstyear=2004&license=viewergpl

Copyright (c) 2004-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file FSCopyObject.h.


Define Documentation

#define CallCopyObjectFilterProc ( userRoutine,
containerChanged,
currentLevel,
currentOSErr,
catalogInfo,
ref,
spec,
name,
yourDataPtr   )     (*(userRoutine))((containerChanged), (currentLevel), (currentOSErr), (catalogInfo), (ref), (spec), (name), (yourDataPtr))

Definition at line 198 of file FSCopyObject.h.

Referenced by CopyFolder(), FSCopyFile(), and FSCopyFolder().

#define DEBUG   1

Definition at line 87 of file FSCopyObject.h.

#define dwarning ( s   )     do { printf s; fflush(stderr); } while( 0 )

Definition at line 94 of file FSCopyObject.h.

Referenced by CopyFolder(), FSCopyFolder(), FSCopyObject(), FSDeleteObjects(), and ProcessFolderList().

#define mycheck ( assertion   ) 

Value:

do {                                                                                                                                    \
                        if( ! assertion ) {                                                                                                     \
                   dwarning((QuoteExceptionString(assertion) " failed in File: %s, Function: %s, Line: %d\n",   \
                                                                          __FILE__, __FUNCTION__, __LINE__));   \
                        }                                                                                                                                       \
                } while( false )

Definition at line 104 of file FSCopyObject.h.

Referenced by CalcBufferSizeForVol().

#define mycheck_noerr ( error   ) 

Value:

do {                                                                                                                                    \
                        if( (OSErr) error != noErr ) {                                                                          \
                   dwarning((QuoteExceptionString(error) " != noErr in File: %s, Function: %s, Line: %d, Error: %d\n",  \
                                                                          __FILE__, __FUNCTION__, __LINE__, (OSErr) error));            \
                 }                                                                                                                                      \
                } while( false )

Definition at line 96 of file FSCopyObject.h.

Referenced by CheckForDestInsideSrc(), CopyFile(), CopyForks(), CopyForksToDisk(), CopyForksToDropBox(), CreateFolder(), DoCopyFile(), DoCreateFolder(), FSCopyFile(), FSCopyFolder(), FSCopyObject(), FSDeleteFolder(), FSDeleteFolderLevel(), FSDeleteObjects(), FSGetVolParms(), FSGetVRefNum(), FSMakeFSRef(), FSUsePBHCopyFile(), GetMagicBusyCreateDate(), IsDropBox(), OpenAllForks(), and UniStrToPStr().

#define myverify ( assertion   )     mycheck(assertion)

Definition at line 112 of file FSCopyObject.h.

#define myverify_noerr ( assertion   )     mycheck_noerr( (assertion) )

Definition at line 113 of file FSCopyObject.h.

Referenced by CopyForksToDisk(), CopyForksToDropBox(), DoCopyFile(), FSCopyObject(), FSDeleteFolderLevel(), FSDeleteObjects(), FSUsePBHCopyFile(), MyCloseForkProc(), ProcessFolderList(), and UniStrToPStr().

#define QuoteExceptionString ( x   )     #x

Definition at line 92 of file FSCopyObject.h.


Typedef Documentation

typedef ItemCount OSErr const FSCatalogInfo* catalogInfo

Definition at line 185 of file FSCopyObject.h.

typedef ItemCount currentLevel

Definition at line 185 of file FSCopyObject.h.

typedef ItemCount OSErr currentOSErr

Definition at line 185 of file FSCopyObject.h.

typedef UInt32 DupeAction

Definition at line 131 of file FSCopyObject.h.

typedef ItemCount OSErr const FSCatalogInfo const FSRef const FSSpec const HFSUniStr255* name

Definition at line 185 of file FSCopyObject.h.

typedef ItemCount OSErr const FSCatalogInfo const FSRef* ref

Definition at line 185 of file FSCopyObject.h.

typedef ItemCount OSErr const FSCatalogInfo const FSRef const FSSpec* spec

Definition at line 185 of file FSCopyObject.h.

typedef ItemCount OSErr const FSCatalogInfo const FSRef const FSSpec const HFSUniStr255 void* yourDataPtr

Definition at line 185 of file FSCopyObject.h.


Enumeration Type Documentation

anonymous enum

Enumerator:
kDupeActionStandard 
kDupeActionReplace 
kDupeActionRename 

Definition at line 132 of file FSCopyObject.h.


Function Documentation

typedef CALLBACK_API ( OSErr  ,
CopyObjectFilterProcPtr   
)

OSErr FSCopyObject ( const FSRef *  source,
const FSRef *  destDir,
ItemCount  maxLevels,
FSCatalogInfoBitmap  whichInfo,
DupeAction  dupeAction,
const HFSUniStr255 *  newName,
Boolean  wantFSSpec,
Boolean  wantName,
CopyObjectFilterProcPtr  filterProcPtr,
void yourDataPtr,
FSRef *  newObjectRef,
FSSpec *  newObjectSpec 
)

Definition at line 343 of file FSCopyObject.c.

References CheckForDestInsideSrc(), CopyParams::copyBuffer, CopyParams::copyBufferSize, CopyParams::copyingToDropFolder, CopyParams::copyingToLocalVolume, CopyParams::dupeAction, dwarning, FilterParams::filterProcPtr, FSCopyFile(), FSCopyFolder(), FSCopyObjectPreflight(), FSDeleteObjects(), GetObjectName(), kDupeActionRename, kDupeActionReplace, mycheck_noerr, myverify_noerr, NULL, CopyParams::volHasCopyFile, FilterParams::wantName, FilterParams::wantSpec, FilterParams::whichInfo, and FilterParams::yourDataPtr.

Referenced by restoreObject(), and updatethreadproc().

OSErr FSDeleteObjects ( const FSRef *  source  ) 

Definition at line 1446 of file FSCopyObject.c.

References dwarning, FSDeleteFolder(), mycheck_noerr, myverify_noerr, NULL, and void.

Referenced by DoCopyFile(), FSCopyObject(), and updatethreadproc().


Generated on Thu Jul 1 06:10:04 2010 for Second Life Viewer by  doxygen 1.4.7