| 1 |
/* |
| 2 |
Copyright (c) 1990-2001 Info-ZIP. All rights reserved. |
| 3 |
|
| 4 |
See the accompanying file LICENSE, version 2000-Apr-09 or later |
| 5 |
(the contents of which are also included in zip.h) for terms of use. |
| 6 |
If, for some reason, all these files are missing, the Info-ZIP license |
| 7 |
also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html |
| 8 |
*/ |
| 9 |
#ifndef PATHNAME_H |
| 10 |
#define PATHNAME_H 1 |
| 11 |
|
| 12 |
|
| 13 |
char *StripPartialDir(char *CompletePath, |
| 14 |
const char *PartialPath, const char *FullPath); |
| 15 |
|
| 16 |
char *Real2RfDfFilen(char *RfDfFilen, const char *RealPath, short CurrentFork, |
| 17 |
short MacZipMode, Boolean DataForkOnly); |
| 18 |
char *RfDfFilen2Real(char *RealFn, const char *RfDfFilen, short MacZipMode, |
| 19 |
Boolean DataForkOnly, short *CurrentFork); |
| 20 |
|
| 21 |
unsigned short GetVolumeFromPath(const char *FullPath, char *VolumeName); |
| 22 |
char *GetCompletePath(char *CompletePath, const char *name, FSSpec *Spec, |
| 23 |
OSErr *err); |
| 24 |
char *TruncFilename(char *DirPath, const char *FilePath); |
| 25 |
char *GetFilename(char *CompletePath, const char *name); |
| 26 |
char *GetFullPathFromSpec(char *CompletePath, FSSpec *Spec, OSErr *err); |
| 27 |
char *GetFullPathFromID(char *CompletePath, short vRefNum, long dirID, |
| 28 |
ConstStr255Param name, OSErr *err); |
| 29 |
|
| 30 |
char *GetAppName(void); |
| 31 |
void createArchiveName(char *Path); |
| 32 |
void FindDesktopFolder(char *Path); |
| 33 |
char *FindNewExtractFolder(char *ExtractPath, Boolean uniqueFolder); |
| 34 |
OSErr FSpFindFolder( |
| 35 |
short vRefNum, /* Volume reference number. */ |
| 36 |
OSType folderType, /* Folder type taken by FindFolder. */ |
| 37 |
Boolean createFolder, /* Should we create it if non-existant. */ |
| 38 |
FSSpec *spec); /* Pointer to resulting directory. */ |
| 39 |
|
| 40 |
char *MakeFilenameShorter(const char *LongFilename); |
| 41 |
|
| 42 |
/* |
| 43 |
Rule: UnKnown_EF should always be zero. |
| 44 |
JohnnyLee_EF, NewZipMode_EF should always greater than all |
| 45 |
other definitions |
| 46 |
*/ |
| 47 |
#define UnKnown_EF 0 |
| 48 |
#define TomBrownZipIt1_EF 10 |
| 49 |
#define TomBrownZipIt2_EF 20 |
| 50 |
#define JohnnyLee_EF 30 |
| 51 |
#define NewZipMode_EF 40 |
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
#define ResourceFork -1 |
| 56 |
#define DataFork 1 |
| 57 |
#define NoFork 0 |
| 58 |
|
| 59 |
|
| 60 |
#ifndef NAME_MAX |
| 61 |
#define NAME_MAX 1024 |
| 62 |
#endif |
| 63 |
|
| 64 |
#endif /* PATHNAME_H */ |