diff options
Diffstat (limited to 'maildirquota.h')
| -rw-r--r-- | maildirquota.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/maildirquota.h b/maildirquota.h new file mode 100644 index 0000000..96bbea7 --- /dev/null +++ b/maildirquota.h | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | #ifndef maildirquota_h | ||
| 2 | #define maildirquota_h | ||
| 3 | |||
| 4 | /* | ||
| 5 | ** Copyright 1998 - 1999 Double Precision, Inc. | ||
| 6 | ** See COPYING for distribution information. | ||
| 7 | */ | ||
| 8 | |||
| 9 | #if HAVE_CONFIG_H | ||
| 10 | #include "config.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | #include <sys/types.h> | ||
| 14 | #include <stdio.h> | ||
| 15 | |||
| 16 | #ifdef __cplusplus | ||
| 17 | extern "C" { | ||
| 18 | #endif | ||
| 19 | |||
| 20 | static const char maildirquota_h_rcsid[]="$Id: maildirquota.h,v 1.2 2000/09/04 17:10:28 mrsam Exp $"; | ||
| 21 | |||
| 22 | int maildir_checkquota(const char *, /* Pointer to directory */ | ||
| 23 | int *, /* Initialized to -1, or opened descriptor for maildirsize */ | ||
| 24 | const char *, /* The quota */ | ||
| 25 | long, /* Extra bytes planning to add/remove from maildir */ | ||
| 26 | int); /* Extra messages planning to add/remove from maildir */ | ||
| 27 | |||
| 28 | int maildir_addquota(const char *, /* Pointer to the maildir */ | ||
| 29 | int, /* Must be the int pointed to by 2nd arg to checkquota */ | ||
| 30 | const char *, /* The quota */ | ||
| 31 | long, /* +/- bytes */ | ||
| 32 | int); /* +/- files */ | ||
| 33 | |||
| 34 | int maildir_readquota(const char *, /* Directory */ | ||
| 35 | const char *); /* Quota, from getquota */ | ||
| 36 | |||
| 37 | int maildir_parsequota(const char *, unsigned long *); | ||
| 38 | /* Attempt to parse file size encoded in filename. Returns 0 if | ||
| 39 | ** parsed, non-zero if we didn't parse. */ | ||
| 40 | |||
| 41 | #ifdef __cplusplus | ||
| 42 | } | ||
| 43 | #endif | ||
| 44 | |||
| 45 | #endif | ||
