0
|
1 /*
|
|
2 over.h
|
|
3
|
|
4 Processing of single article overviews. Handling of overview files is in
|
|
5 content.c. An article overview contains important article properties,
|
|
6 such as date, from, subject.
|
|
7
|
|
8 $Id: over.h 3 2000-01-04 11:35:42Z enz $
|
|
9 */
|
|
10
|
|
11 #ifndef OVER_H
|
|
12 #define OVER_H
|
|
13
|
|
14 #include <time.h>
|
|
15 #include "common.h"
|
|
16
|
|
17 struct Over;
|
|
18 typedef struct Over Over;
|
|
19
|
|
20 /*
|
|
21 Usual fields from overview databases.
|
|
22 Xref without hostname.
|
|
23 */
|
|
24 Over *
|
|
25 new_Over( const char *subj, const char *from, const char *date,
|
|
26 const char *msgId, char *ref, size_t bytes, size_t lines );
|
|
27
|
|
28
|
|
29 /* free memory */
|
|
30 void
|
|
31 del_Over( Over *self );
|
|
32
|
|
33 /* read Over-struct from line */
|
|
34 Over *
|
|
35 Ov_read( char *line );
|
|
36
|
|
37 /* write struct Over to f as a line */
|
|
38 Bool
|
|
39 Ov_write( const Over *self, FILE *f );
|
|
40
|
|
41 /* Access particular fields in struct over */
|
|
42
|
|
43 int
|
|
44 Ov_numb( const Over *self );
|
|
45
|
|
46 const char *
|
|
47 Ov_subj( const Over *self );
|
|
48
|
|
49 const char *
|
|
50 Ov_from( const Over *self );
|
|
51
|
|
52 const char *
|
|
53 Ov_date( const Over *self );
|
|
54
|
|
55 const char *
|
|
56 Ov_msgId( const Over *self );
|
|
57
|
|
58 const char *
|
|
59 Ov_ref( const Over *self );
|
|
60
|
|
61 size_t
|
|
62 Ov_bytes( const Over *self );
|
|
63
|
|
64 size_t
|
|
65 Ov_lines( const Over *self );
|
|
66
|
|
67 void
|
|
68 Ov_setNumb( Over *self, int numb );
|
|
69
|
|
70 #endif
|