filealias.c File Reference

#include "frontier.h"
#include "standard.h"
#include "filealias.h"
#include "error.h"
#include "resources.h"
#include "file.h"
#include "filesystem7.h"

Include dependency graph for filealias.c:

Go to the source code of this file.

Data Structures

struct  MappingEntry

Defines

#define kNumIconTypes   6
#define kNumFolders   9
#define kCustomAliasIconID   -16496

Functions

static Boolean FSpIsVolume (const FSSpec *fsSpec)
static Boolean FSpIsFolder (const FSSpec *fsSpec, long *dirID, unsigned short *fdFlags)
static Boolean CopyCustomIcons (const FSSpec *source, short sourceID, short destRefnum, short destID)
static Boolean CopyDriverIcon (const FSSpec *volSpec, short destRefnum, short destID)
static OSErr DetermineAliasInfo (const FSSpec *fsSpec, OSType *creator, OSType *fType, Boolean *gotCustom, FSSpec *iconSpec, short *rsrcID, unsigned short *fdFlags)
static pascal OSErr CreateAliasFile (const FSSpec *targetFile, const FSSpec *aliasFile)
boolean MakeAliasFile (const FSSpec *srcFile, const FSSpec *destFile)


Define Documentation

#define kCustomAliasIconID   -16496
 

Definition at line 79 of file filealias.c.

Referenced by CreateAliasFile().

#define kNumFolders   9
 

Definition at line 74 of file filealias.c.

Referenced by DetermineAliasInfo().

#define kNumIconTypes   6
 

Definition at line 73 of file filealias.c.

Referenced by CopyCustomIcons().


Function Documentation

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

Definition at line 196 of file filealias.c.

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

Referenced by CreateAliasFile().

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

Definition at line 246 of file filealias.c.

References DisposeHandle, FSpIsVolume(), h, NewHandle, noErr, and NULL.

Referenced by CreateAliasFile().

Here is the call graph for this function:

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

Definition at line 100 of file filealias.c.

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

Referenced by filemakealias(), and MakeAliasFile().

Here is the call graph for this function:

static OSErr DetermineAliasInfo const FSSpec fsSpec,
OSType creator,
OSType fType,
Boolean gotCustom,
FSSpec iconSpec,
short rsrcID,
unsigned short fdFlags
[static]
 

Definition at line 318 of file filealias.c.

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

Referenced by CreateAliasFile().

Here is the call graph for this function:

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

Definition at line 171 of file filealias.c.

References FSpIsVolume(), and noErr.

Referenced by DetermineAliasInfo().

Here is the call graph for this function:

static Boolean FSpIsVolume const FSSpec fsSpec  )  [static]
 

Definition at line 164 of file filealias.c.

Referenced by CopyDriverIcon(), CreateAliasFile(), DetermineAliasInfo(), and FSpIsFolder().

boolean MakeAliasFile const FSSpec srcFile,
const FSSpec destFile
 

Definition at line 408 of file filealias.c.

References CreateAliasFile(), noErr, and oserror().

Here is the call graph for this function:


Generated on Thu Jun 1 07:04:07 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6