blob: d3b8cfe2340ca4b16f988aa75ff91a67fd98586b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/*
* $Id: icache.h 874 2007-12-15 02:51:06Z hubert@u.washington.edu $
*
* ========================================================================
* Copyright 2013-2022 Eduardo Chappa
* Copyright 2006-2007 University of Washington
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ========================================================================
*/
#ifndef PITH_ICACHE_INCLUDED
#define PITH_ICACHE_INCLUDED
#include "../pith/msgno.h"
#include "../pith/thread.h"
#include "../pith/indxtype.h"
/* flags for clear_index_cache() */
#define IC_USE_RAW_MSGNO 0x01
#define IC_CLEAR_WIDTHS_DONE 0x02
/* exported prototypes */
void clear_index_cache_ent(MAILSTREAM *, long, unsigned);
void clear_index_cache(MAILSTREAM *, unsigned);
void clear_index_cache_for_thread(MAILSTREAM *, PINETHRD_S *, MSGNO_S *);
void clear_icache_flags(MAILSTREAM *);
void set_need_format_setup(MAILSTREAM *);
int need_format_setup(MAILSTREAM *);
void set_format_includes_msgno(MAILSTREAM *);
int format_includes_msgno(MAILSTREAM *);
void set_format_includes_smartdate(MAILSTREAM *);
int format_includes_smartdate(MAILSTREAM *);
void free_ice(ICE_S **);
void clear_ice(ICE_S **);
void free_ifield(IFIELD_S **);
void free_ielem(IELEM_S **);
ICE_S *fetch_ice(MAILSTREAM *, unsigned long);
ICE_S **fetch_ice_ptr(MAILSTREAM *, unsigned long);
ICE_S *copy_ice(ICE_S *);
IFIELD_S *copy_ifield(IFIELD_S *);
IELEM_S *copy_ielem(IELEM_S *);
ICE_S *new_ice(void);
IFIELD_S *new_ifield(IFIELD_S **);
IELEM_S *new_ielem(IELEM_S **);
#endif /* PITH_ICACHE_INCLUDED */
|