00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _H_filertr
00023 #define _H_filertr
00024
00025 #ifndef _STDIO_INCLUDED_
00026 #define _STDIO_INCLUDED_
00027 #include <stdio.h>
00028 #endif
00029
00030 #define FILE_ROUTER_DATA 47
00031
00032 struct fileRouter
00033 {
00034 char *logicalName;
00035 FILE *stream;
00036 struct fileRouter *next;
00037 };
00038
00039 struct fileRouterData
00040 {
00041 struct fileRouter *ListOfFileRouters;
00042 };
00043
00044 #define FileRouterData(theEnv) ((struct fileRouterData *) GetEnvironmentData(theEnv,FILE_ROUTER_DATA))
00045
00046 #ifdef LOCALE
00047 #undef LOCALE
00048 #endif
00049
00050 #ifdef _FILERTR_SOURCE_
00051 #define LOCALE
00052 #else
00053 #define LOCALE extern
00054 #endif
00055
00056 LOCALE void InitializeFileRouter(void *);
00057 LOCALE FILE *FindFptr(void *,char *);
00058 LOCALE int OpenAFile(void *,char *,char *,char *);
00059 LOCALE int CloseAllFiles(void *);
00060 LOCALE int CloseFile(void *,char *);
00061 LOCALE int FindFile(void *,char *);
00062
00063 #endif
00064
00065
00066
00067
00068
00069