summaryrefslogtreecommitdiff
path: root/sieve/svfield.h
blob: 184e293ea90f3ec4c6c24d39a2fe59156608c85b (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
/*
 * sieve field cache.
 */

#ifndef SVFIELD_H
#define SVFIELD_H

#define SV_FIELD_CACHE_SIZE 1019

typedef struct sv_field_t
{
  char *name;
  int ncontents;
  char *contents[1];
}
sv_field_t;

typedef struct sv_field_cache_t
{
  sv_field_t *cache[SV_FIELD_CACHE_SIZE];
}
sv_field_cache_t;

extern int sv_field_cache_add (sv_field_cache_t* m, const char *name, char *body);
extern int sv_field_cache_get (sv_field_cache_t* m, const char *name, const char ***body);
extern void sv_field_cache_release (sv_field_cache_t* m);

#endif

Return to:

Send suggestions and report system problems to the System administrator.