Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

dirtree-common.h

Go to the documentation of this file.
00001 /****************************************************************************************/
00002 /*  DIRTREE-COMMON.H                                                                    */
00003 /*                                                                                      */
00004 /*  Author: Samuel Seay                                                                 */
00005 /*  Description: Common functions between Dirtree files                                 */
00006 /*                                                                                      */
00007 /*  The contents of this file are subject to the Genesis3D Public License               */
00008 /*  Version 1.01 (the "License"); you may not use this file except in                   */
00009 /*  compliance with the License. You may obtain a copy of the License at                */
00010 /*  http://www.genesis3d.com                                                            */
00011 /*                                                                                      */
00012 /*  Software distributed under the License is distributed on an "AS IS"                 */
00013 /*  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See                */
00014 /*  the License for the specific language governing rights and limitations              */
00015 /*  under the License.                                                                  */
00016 /*                                                                                      */
00017 /*  The Original Code is Genesis3D, released March 25, 1999.                            */
00018 /*  Genesis3D Version 1.1 released November 15, 1999                                    */
00019 /*  Copyright (C) 1999 WildTangent, Inc. All Rights Reserved                            */
00020 /*                                                                                      */
00021 /****************************************************************************************/
00022 #ifndef DIRTREE_COMMON_H
00023 #define DIRTREE_COMMON_H
00024 
00025 
00026 #include        "vfile.h"
00027 
00028 typedef struct  DirTree_Header
00029 {
00030         unsigned long   Signature;
00031         int                             Size;
00032         
00033 }       DirTree_Header;
00034 
00035 #define DIRTREE_LIST_TERMINATED         0xffffffff
00036 #define DIRTREE_LIST_NOTTERMINATED      0
00037 
00038 #ifndef MAKEFOURCC
00039 #define MAKEFOURCC(ch0, ch1, ch2, ch3)                              \
00040                 ((unsigned long)(unsigned char)(ch0) | ((unsigned long)(unsigned char)(ch1) << 8) |   \
00041                 ((unsigned long)(unsigned char)(ch2) << 16) | ((unsigned long)(unsigned char)(ch3) << 24 ))
00042 #endif
00043 
00044 char *  DuplicateString(const char *String);
00045 const char *GetNextDir(const char *Path, char *Buff);
00046 geBoolean       MatchPattern(const char *Source, const char *Pattern);
00047 geBoolean       PathHasDir(const char *Path);
00048 
00049 #ifdef  DEBUG
00050 static  void    indent(int i);
00051 #endif
00052 
00053 #endif

Generated on Tue Sep 30 12:35:37 2003 for GTestAndEngine by doxygen 1.3.2