… | |
… | |
15 | */ |
15 | */ |
16 | |
16 | |
17 | #ifndef __UUDEVIEW_H__ |
17 | #ifndef __UUDEVIEW_H__ |
18 | #define __UUDEVIEW_H__ |
18 | #define __UUDEVIEW_H__ |
19 | |
19 | |
|
|
20 | #include <stdint.h> |
|
|
21 | |
20 | /* |
22 | /* |
21 | * This include file features all the definitions that should |
23 | * This include file features all the definitions that should |
22 | * be externally visible. This isn't much. |
24 | * be externally visible. This isn't much. |
23 | * |
25 | * |
24 | * $Id: uudeview.h,v 1.10 2020/12/10 22:49:15 root Exp $ |
26 | * $Id: uudeview.h,v 1.11 2020/12/12 10:48:39 root Exp $ |
25 | */ |
27 | */ |
26 | |
28 | |
27 | #ifndef _ANSI_ARGS_ |
29 | #ifndef _ANSI_ARGS_ |
28 | #ifdef PROTOTYPES |
30 | #ifdef PROTOTYPES |
29 | #define _ANSI_ARGS_(c) c |
31 | #define _ANSI_ARGS_(c) c |
… | |
… | |
134 | * After inserting a bunch of files, UUCheckGlobalList must be called |
136 | * After inserting a bunch of files, UUCheckGlobalList must be called |
135 | * to update the states. |
137 | * to update the states. |
136 | */ |
138 | */ |
137 | |
139 | |
138 | typedef struct _uulist { |
140 | typedef struct _uulist { |
|
|
141 | struct _uulist *NEXT; /* next item of the list */ |
|
|
142 | struct _uulist *PREV; /* previous item of the list */ |
|
|
143 | |
139 | short state; /* Status as described by the macros above */ |
144 | uint8_t state; /* Status as described by the macros above */ |
140 | short mode; /* file mode as found on begin line */ |
|
|
141 | |
145 | |
142 | int begin; /* part number where begin was detected */ |
146 | int begin; /* part number where begin was detected */ |
143 | int end; /* part number where end was detected */ |
147 | int end; /* part number where end was detected */ |
144 | |
148 | |
|
|
149 | uint32_t filename_hash; /* hash of filename for faster comparisons */ |
|
|
150 | uint32_t mimeid_hash; /* hash of filename for faster comparisons */ |
|
|
151 | |
145 | short uudet; /* Encoding type (see macros above) */ |
152 | uint8_t uudet; /* Encoding type (see macros above) */ |
146 | int flags; /* flags, especially for single-part files */ |
153 | uint8_t flags; /* flags, especially for single-part files */ |
147 | |
154 | |
148 | long size; /* approximate size of resulting file */ |
|
|
149 | char *filename; /* malloc'ed file name */ |
155 | char *filename; /* malloc'ed file name */ |
150 | char *subfname; /* malloc'ed ID from subject line */ |
156 | char *subfname; /* malloc'ed ID from subject line */ |
151 | char *mimeid; /* malloc'ed MIME-ID, if available */ |
157 | char *mimeid; /* malloc'ed MIME-ID, if available */ |
152 | char *mimetype; /* malloc'ed Content-Type, if available */ |
158 | char *mimetype; /* malloc'ed Content-Type, if available */ |
153 | |
159 | |
154 | char *binfile; /* name of temp file, if already decoded */ |
160 | char *binfile; /* name of temp file, if already decoded */ |
|
|
161 | long size; /* approximate size of resulting file */ |
155 | |
162 | |
156 | struct _uufile *thisfile; /* linked list of this file's parts */ |
163 | struct _uufile *thisfile; /* linked list of this file's parts */ |
157 | |
164 | |
158 | int *haveparts; /* the parts we have (max. 256 are listed) */ |
165 | int *haveparts; /* the parts we have (max. 256 are listed) */ |
159 | int *misparts; /* list of missing parts (max. 256) */ |
166 | int *misparts; /* list of missing parts (max. 256) */ |
160 | |
167 | |
161 | struct _uulist *NEXT; /* next item of the list */ |
168 | uint16_t mode; /* file mode as found on begin line */ |
162 | struct _uulist *PREV; /* previous item of the list */ |
|
|
163 | } uulist; |
169 | } uulist; |
164 | |
170 | |
165 | /* |
171 | /* |
166 | * The "progress" structure which is passed to the Busy Callback |
172 | * The "progress" structure which is passed to the Busy Callback |
167 | */ |
173 | */ |