annotate over.h @ 1:912123d43a87 noffle

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