~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/blenloader/intern/readfile.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: readfile.h,v 1.5 2002/12/27 13:10:15 mein Exp $
 
2
 * $Id: readfile.h,v 1.7 2005/06/02 17:38:42 ton Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
34
34
#define READFILE_H
35
35
 
36
36
struct OldNewMap;
 
37
struct MemFile;
37
38
 
38
39
typedef struct FileData {
39
40
        // linked list of BHeadN's
45
46
        int (*read)(struct FileData *filedata, void *buffer, int size);
46
47
 
47
48
        // variables needed for reading from memory / stream
48
 
        char * buffer;
 
49
        char *buffer;
 
50
        // variables needed for reading from memfile (undo)
 
51
        struct MemFile *memfile;
49
52
 
50
53
        // variables needed for reading from file
51
54
        int filedes;
52
 
 
 
55
        // now only in use for library appending
 
56
        char filename[FILE_MAXDIR+FILE_MAXFILE];
 
57
        
53
58
        // variables needed for reading from stream
54
59
        char headerdone;
55
60
        int inbuffer;
93
98
void blo_join_main(ListBase *mainlist);
94
99
void blo_split_main(ListBase *mainlist);
95
100
 
96
 
        BlendFileData*
97
 
blo_read_file_internal(
98
 
        FileData *fd, 
99
 
        BlendReadError *error_r);
100
 
 
101
 
 
102
 
        FileData*
103
 
blo_openblenderfile(
104
 
        char *name);
105
 
 
106
 
        FileData*
107
 
blo_openblendermemory(
108
 
        void *buffer,
109
 
        int buffersize);
110
 
 
111
 
        void
112
 
blo_freefiledata(
113
 
        FileData *fd);
114
 
 
115
 
 
116
 
        BHead*
117
 
blo_firstbhead(
118
 
        FileData *fd);
119
 
 
120
 
        BHead*
121
 
blo_nextbhead(
122
 
        FileData *fd, 
123
 
        BHead *thisblock);
124
 
 
125
 
        BHead*
126
 
blo_prevbhead(
127
 
        FileData *fd, 
128
 
        BHead *thisblock);
 
101
BlendFileData *blo_read_file_internal( FileData *fd,  BlendReadError *error_r);
 
102
 
 
103
FileData *blo_openblenderfile( char *name);
 
104
FileData *blo_openblendermemory( void *buffer, int buffersize);
 
105
FileData *blo_openblendermemfile(struct MemFile *memfile);
 
106
 
 
107
void blo_freefiledata( FileData *fd);
 
108
 
 
109
 
 
110
BHead *blo_firstbhead(FileData *fd);
 
111
BHead *blo_nextbhead(FileData *fd, BHead *thisblock);
 
112
BHead *blo_prevbhead(FileData *fd, BHead *thisblock);
129
113
        
130
114
#endif
131
115