|
Revision 5349:039d939d8c3e, 1.5 kB
(checked in by Rocco Rutte <pdmef@…>, 7 months ago)
|
|
Use 'unsigned int' for file browser state to browse huge dirs (closes #3017).
|
| Line | |
|---|
| 1 | /* $Id$ */ |
|---|
| 2 | /* |
|---|
| 3 | * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org> |
|---|
| 4 | * |
|---|
| 5 | * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | * it under the terms of the GNU General Public License as published by |
|---|
| 7 | * the Free Software Foundation; either version 2 of the License, or |
|---|
| 8 | * (at your option) any later version. |
|---|
| 9 | * |
|---|
| 10 | * This program is distributed in the hope that it will be useful, |
|---|
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | * GNU General Public License for more details. |
|---|
| 14 | * |
|---|
| 15 | * You should have received a copy of the GNU General Public License |
|---|
| 16 | * along with this program; if not, write to the Free Software |
|---|
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|---|
| 18 | */ |
|---|
| 19 | |
|---|
| 20 | #ifndef _BROWSER_H |
|---|
| 21 | #define _BROWSER_H 1 |
|---|
| 22 | |
|---|
| 23 | struct folder_file |
|---|
| 24 | { |
|---|
| 25 | mode_t mode; |
|---|
| 26 | off_t size; |
|---|
| 27 | time_t mtime; |
|---|
| 28 | struct stat *st; |
|---|
| 29 | |
|---|
| 30 | char *name; |
|---|
| 31 | char *desc; |
|---|
| 32 | |
|---|
| 33 | unsigned short new; |
|---|
| 34 | #ifdef USE_IMAP |
|---|
| 35 | char delim; |
|---|
| 36 | |
|---|
| 37 | unsigned imap : 1; |
|---|
| 38 | unsigned selectable : 1; |
|---|
| 39 | unsigned inferiors : 1; |
|---|
| 40 | #endif |
|---|
| 41 | unsigned tagged : 1; |
|---|
| 42 | }; |
|---|
| 43 | |
|---|
| 44 | struct browser_state |
|---|
| 45 | { |
|---|
| 46 | struct folder_file *entry; |
|---|
| 47 | unsigned int entrylen; /* number of real entries */ |
|---|
| 48 | unsigned int entrymax; /* max entry */ |
|---|
| 49 | #ifdef USE_IMAP |
|---|
| 50 | short imap_browse; |
|---|
| 51 | char *folder; |
|---|
| 52 | unsigned noselect : 1; |
|---|
| 53 | unsigned marked : 1; |
|---|
| 54 | unsigned unmarked : 1; |
|---|
| 55 | #endif |
|---|
| 56 | }; |
|---|
| 57 | |
|---|
| 58 | struct mailbox_state |
|---|
| 59 | { |
|---|
| 60 | unsigned int new; |
|---|
| 61 | unsigned int old; |
|---|
| 62 | unsigned int messages; |
|---|
| 63 | }; |
|---|
| 64 | #endif /* _BROWSER_H */ |
|---|