~ubuntu-branches/ubuntu/lucid/onscripter/lucid

« back to all changes in this revision

Viewing changes to SarReader.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2008-02-12 20:22:19 UTC
  • mfrom: (0.1.2 lenny) (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080212202219-jx4xdi0izczp0pcy
Tags: 20080121-0ubuntu1
* Fake-sync onscripter 0.0.20080121-1 from Debian unstable (LP: #187890).
  Drop the leading zeroes from the version due to different versioning in
  Debian and Ubuntu.
* debian/control:
  + Modify Maintainer value to match DebianMaintainerField spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 *  SarReader.cpp - Reader from a SAR archive
4
4
 *
5
 
 *  Copyright (c) 2001-2004 Ogapee. All rights reserved.
 
5
 *  Copyright (c) 2001-2007 Ogapee. All rights reserved.
6
6
 *
7
7
 *  ogapee@aqua.dti2.ne.jp
8
8
 *
39
39
    
40
40
    size_t getFileLength( const char *file_name );
41
41
    size_t getFile( const char *file_name, unsigned char *buf, int *location=NULL );
42
 
    struct FileInfo getFileByIndex( int index );
 
42
    struct FileInfo getFileByIndex( unsigned int index );
43
43
 
44
44
    int writeHeader( FILE *fp );
45
45
    size_t putFile( FILE *fp, int no, size_t offset, size_t length, size_t original_length, bool modified_flag, unsigned char *buffer );
49
49
    struct ArchiveInfo *root_archive_info, *last_archive_info;
50
50
    int num_of_sar_archives;
51
51
 
52
 
    int readArchive( ArchiveInfo *ai, int archive_type = ARCHIVE_TYPE_SAR );
 
52
    void readArchive( ArchiveInfo *ai, int archive_type = ARCHIVE_TYPE_SAR );
 
53
    int readArchiveSub( ArchiveInfo *ai, int archive_type = ARCHIVE_TYPE_SAR, bool check_size = true );
53
54
    int getIndexFromFile( ArchiveInfo *ai, const char *file_name );
54
55
    size_t getFileSub( ArchiveInfo *ai, const char *file_name, unsigned char *buf );
55
56