annotate content.h @ 17:d30c5ce2eee1 noffle

[svn] *** empty log message ***
author enz
date Sat, 29 Apr 2000 13:41:06 +0100
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 content.h
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
3
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
4 Contents of a newsgroup
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
5 - list of article overviews for selected group.
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
6
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
7 The overviews of all articles of a group are stored in an overview file,
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
8 filename SPOOLDIR/overview/GROUPNAME. One entire overview file is read
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
9 and cached in memory, at a time.
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
10
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
11 $Id: content.h 3 2000-01-04 11:35:42Z enz $
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
12 */
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
13
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
14 #ifndef CONT_H
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
15 #define CONT_H
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
16
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
17 #include "over.h"
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
18
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
19 /*
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
20 Try to read overviews from overview file for group <grp>.
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
21 Fill with fake articles, if something goes wrong.
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
22 */
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
23 void
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
24 Cont_read( const char *grp );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
25
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
26 /*
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
27 Append overview to current list and increment the current
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
28 group's last article counter. Ownership of the ptr is transfered
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
29 to content
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
30 */
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
31 void
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
32 Cont_app( Over *ov );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
33
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
34 /* Write content */
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
35 void
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
36 Cont_write( void );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
37
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
38 Bool
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
39 Cont_validNumb( int numb );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
40
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
41 const Over *
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
42 Cont_get( int numb );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
43
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
44 void
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
45 Cont_delete( int numb );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
46
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
47 int
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
48 Cont_first( void );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
49
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
50 int
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
51 Cont_last( void );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
52
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
53 const char *
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
54 Cont_grp( void );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
55
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
56 Bool
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
57 Cont_nextGrp( Str result );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
58
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
59 Bool
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
60 Cont_firstGrp( Str result );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
61
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
62 void
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
63 Cont_expire( void );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
64
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
65 #endif