appletfilealias.c File Reference

#include <GestaltEqu.h>
#include <Aliases.h>
#include <Finder.h>
#include <Folders.h>
#include "appletdefs.h"
#include "appletfiles.h"
#include "appletmemory.h"
#include "appletstrings.h"
#include "appletfilesinternal.h"
#include "appletfilealias.h"

Include dependency graph for appletfilealias.c:

Go to the source code of this file.

Data Structures

struct  MappingEntry

Defines

#define usesourcefiletype
#define MAXCHAINS   10
#define kNumIconTypes   6
#define kNumFolders   9
#define kCustomAliasIconID   -16496

Functions

Boolean FSpIsVolume (const FSSpec *fsSpec)
Boolean FSpIsFolder (const FSSpec *fsSpec, long *dirID, unsigned short *fdFlags)
Boolean CopyCustomIcons (const FSSpec *source, short sourceID, short destRefnum, short destID)
Boolean CopyDriverIcon (const FSSpec *volSpec, short destRefnum, short destID)
OSErr DetermineAliasInfo (const FSSpec *fsSpec, OSType *creator, OSType *fType, Boolean *gotCustom, FSSpec *iconSpec, short *rsrcID)
static pascal OSErr CreateAliasFile (const FSSpec *targetFile, const FSSpec *aliasFile)
static pascal OSErr IsAliasFile (const FSSpec *pfs, Boolean *flalias, Boolean *flfolder)
static pascal OSErr ResolveAliasFileMountOption (FSSpec *pfs, Boolean resolvechains, Boolean *targetIsFolder, Boolean *wasAliased, Boolean mountRemoteVols)
boolean filemakealias (const FSSpec *srcFile, const FSSpec *destFile)
boolean fileresolvealias (FSSpec *fs, boolean flmountvolume)


Define Documentation

#define kCustomAliasIconID   -16496
 

Definition at line 34 of file appletfilealias.c.

#define kNumFolders   9
 

Definition at line 29 of file appletfilealias.c.

#define kNumIconTypes   6
 

Definition at line 28 of file appletfilealias.c.

#define MAXCHAINS   10
 

Definition at line 20 of file appletfilealias.c.

Referenced by ResolveAliasFileMountOption().

#define usesourcefiletype
 

Definition at line 18 of file appletfilealias.c.


Function Documentation

static Boolean CopyCustomIcons const FSSpec source,
short  sourceID,
short  destRefnum,
short  destID
 

Definition at line 152 of file appletfilealias.c.

References h, i, kNumIconTypes, noErr, and NULL.

static Boolean CopyDriverIcon const FSSpec volSpec,
short  destRefnum,
short  destID
 

Definition at line 202 of file appletfilealias.c.

References appnewhandle(), FSpIsVolume(), h, noErr, and NULL.

Here is the call graph for this function:

static pascal OSErr CreateAliasFile const FSSpec targetFile,
const FSSpec aliasFile
[static]
 

Definition at line 49 of file appletfilealias.c.

References CopyCustomIcons(), CopyDriverIcon(), DetermineAliasInfo(), filegetinfo(), FSpIsVolume(), info, kCustomAliasIconID, noErr, and NULL.

Here is the call graph for this function:

static OSErr DetermineAliasInfo const FSSpec fsSpec,
OSType creator,
OSType fType,
Boolean gotCustom,
FSSpec iconSpec,
short rsrcID
 

Definition at line 255 of file appletfilealias.c.

References MappingEntry::aliasType, MappingEntry::folderType, FSpIsFolder(), FSpIsVolume(), i, kNumFolders, and noErr.

Here is the call graph for this function:

boolean filemakealias const FSSpec srcFile,
const FSSpec destFile
 

Definition at line 482 of file appletfilealias.c.

References CreateAliasFile(), and fileerror().

Referenced by addaliastospecialfolder(), and filteredcopy().

Here is the call graph for this function:

boolean fileresolvealias FSSpec fs,
boolean  flmountvolume
 

Definition at line 488 of file appletfilealias.c.

References noErr, and ResolveAliasFileMountOption().

Here is the call graph for this function:

static Boolean FSpIsFolder const FSSpec fsSpec,
long dirID,
unsigned short fdFlags
 

Definition at line 127 of file appletfilealias.c.

References FSpIsVolume(), and noErr.

Here is the call graph for this function:

static Boolean FSpIsVolume const FSSpec fsSpec  ) 
 

Definition at line 120 of file appletfilealias.c.

static pascal OSErr IsAliasFile const FSSpec pfs,
Boolean flalias,
Boolean flfolder
[static]
 

Definition at line 349 of file appletfilealias.c.

References assert, copystring(), nil, and noErr.

Referenced by ResolveAliasFileMountOption().

Here is the call graph for this function:

static pascal OSErr ResolveAliasFileMountOption FSSpec pfs,
Boolean  resolvechains,
Boolean targetIsFolder,
Boolean wasAliased,
Boolean  mountRemoteVols
[static]
 

Definition at line 389 of file appletfilealias.c.

References assert, IsAliasFile(), MAXCHAINS, nil, and noErr.

Referenced by fileresolvealias().

Here is the call graph for this function:


Generated on Wed May 31 20:35:23 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6