PA_GBFS.h

Aller à la documentation de ce fichier.
00001 #ifndef _PA_GBFS
00002 #define _PA_GBFS
00003 
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007 
00015 #include "PA_Text.h"
00016 #include "gbfs.h"
00017 
00018 extern inline u8 PA_CompareText(char *text1, char *text2){
00019        u8 ok = 1; // Devrait etre bon
00020        u8 i = 0; 
00021        while(ok && text2[i]){
00022               if (text1[i] != text2[i]) ok = 0;
00023               i++;
00024        }
00025        return ok;
00026 }
00027 
00028 
00029 typedef struct{
00030        void *File; // Position du fichier...
00031        char Name[30]; // Nom du fichier, sans extension
00032        char Ext[6]; // Extension du fichier !
00033        u32 Length; // Longueur
00034 } PA_GBFS_infos;
00035 extern PA_GBFS_infos PA_GBFSfile[200]; 
00036 extern s16 PA_GBFS_nfiles;
00037 extern GBFS_FILE const* PA_GBFS_FILE;
00038 
00049 u32 PA_InitGBFS(void);
00050 
00051 
00052 
00067 extern inline s32 PA_GetGBFSFile(s16 start, char *name, char *extension){
00068 s16 i;
00069 
00070 for (i = start; i < PA_GBFS_nfiles; i++){
00071        if (PA_CompareText(PA_GBFSfile[i].Name, name)&& PA_CompareText(PA_GBFSfile[i].Ext, extension)) 
00072               return i;
00073 }
00074 
00075 return -1;
00076 }
00077 
00078 
00090 s16 PA_GBFSSearchExt(s16 *array, char *extension);
00091 
00092  // end of GBFS
00094 
00095 
00096 #ifdef __cplusplus
00097 }
00098 #endif
00099 
00100 #endif
00101 
00102 

Généré le Tue Jan 30 23:10:49 2007 pour PAlib par  doxygen 1.3.9.1