archivers/grp.c
changeset 28 529214f57d1b
parent 26 575e03541d5e
child 29 91b45664ec85
equal deleted inserted replaced
27:e1d3292769b2 28:529214f57d1b
   113     finfo->curPos = newPos;
   113     finfo->curPos = newPos;
   114     return(1);
   114     return(1);
   115 } /* GRP_seek */
   115 } /* GRP_seek */
   116 
   116 
   117 
   117 
       
   118 static int GRP_fileLength(FileHandle *handle)
       
   119 {
       
   120     GRPfileinfo *finfo = (GRPfileinfo *) (handle->opaque);
       
   121     return(finfo->size);
       
   122 } /* GRP_fileLength */
       
   123 
       
   124 
   118 static int GRP_fileClose(FileHandle *handle)
   125 static int GRP_fileClose(FileHandle *handle)
   119 {
   126 {
   120     free(handle->opaque);
   127     free(handle->opaque);
   121     free(handle);
   128     free(handle);
   122     return(1);
   129     return(1);
   338 } /* GRP_dirClose */
   345 } /* GRP_dirClose */
   339 
   346 
   340 
   347 
   341 static const FileFunctions __PHYSFS_FileFunctions_GRP =
   348 static const FileFunctions __PHYSFS_FileFunctions_GRP =
   342 {
   349 {
   343     GRP_read,       /* read() method  */
   350     GRP_read,       /* read() method       */
   344     NULL,           /* write() method */
   351     NULL,           /* write() method      */
   345     GRP_eof,        /* eof() method   */
   352     GRP_eof,        /* eof() method        */
   346     GRP_tell,       /* tell() method  */
   353     GRP_tell,       /* tell() method       */
   347     GRP_seek,       /* seek() method  */
   354     GRP_seek,       /* seek() method       */
   348     GRP_fileClose   /* fileClose() method */
   355     GRP_fileLength, /* fileLength() method */
       
   356     GRP_fileClose   /* fileClose() method  */
   349 };
   357 };
   350 
   358 
   351 
   359 
   352 const DirFunctions __PHYSFS_DirFunctions_GRP =
   360 const DirFunctions __PHYSFS_DirFunctions_GRP =
   353 {
   361 {