2 * $Id: context.h 764 2007-10-23 23:44:49Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006 University of Washington
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * ========================================================================
16 #ifndef PITH_CONTEXT_INCLUDED
17 #define PITH_CONTEXT_INCLUDED
20 #include "../pith/foldertype.h"
21 #include "../pith/savetype.h"
24 /* exported prototypes */
25 char *context_digest(char *, char *, char *, char *, char *, size_t);
26 char *context_apply(char *, CONTEXT_S
*, char *, size_t);
27 int context_isambig(char *);
28 int context_allowed(char *);
29 long context_create(CONTEXT_S
*, MAILSTREAM
*, char *);
30 MAILSTREAM
*context_open(CONTEXT_S
*, MAILSTREAM
*, char *, long, long *);
31 long context_status(CONTEXT_S
*, MAILSTREAM
*, char *, long);
32 long context_status_full(CONTEXT_S
*, MAILSTREAM
*, char *,
33 long, imapuid_t
*, imapuid_t
*);
34 long context_status_streamp(CONTEXT_S
*, MAILSTREAM
**,
36 long context_status_streamp_full(CONTEXT_S
*, MAILSTREAM
**, char *, long,
37 imapuid_t
*, imapuid_t
*);
38 long context_rename(CONTEXT_S
*, MAILSTREAM
*, char *, char *);
39 MAILSTREAM
*context_already_open_stream(CONTEXT_S
*, char *, int);
40 long context_delete(CONTEXT_S
*, MAILSTREAM
*, char *);
41 long context_append(CONTEXT_S
*, MAILSTREAM
*, char *, STRING
*);
42 long context_append_full(CONTEXT_S
*, MAILSTREAM
*, char *, char *, char *, STRING
*);
43 long context_append_multiple(CONTEXT_S
*, MAILSTREAM
*, char *, append_t
,
44 APPENDPACKAGE
*, MAILSTREAM
*);
45 long context_copy(CONTEXT_S
*, MAILSTREAM
*, char *, char *);
46 MAILSTREAM
*context_same_stream(CONTEXT_S
*, char *, MAILSTREAM
*);
47 CONTEXT_S
*new_context(char *, int *);
48 void free_contexts(CONTEXT_S
**);
49 void free_context(CONTEXT_S
**);
52 #endif /* PITH_CONTEXT_INCLUDED */