annotate fetchlist.h @ 8:ffb0b14fc8d9 noffle

[svn] Online mode/authentication bug
author enz
date Sat, 12 Feb 2000 11:54:42 +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 fetchlist.h
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
3
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
4 List of groups that are to be fetched presently.
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
5
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
6 $Id: fetchlist.h 3 2000-01-04 11:35:42Z enz $
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
7 */
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
8
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
9 #ifndef FETCHLIST_H
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
10 #define FETCHLIST_H
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
11
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
12 #include "common.h"
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
13
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
14 typedef enum { FULL, THREAD, OVER } FetchMode;
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
15
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
16 void
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
17 Fetchlist_read( void );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
18
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
19 /* Invalidates any indices (list is sorted by name before saving) */
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
20 Bool
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
21 Fetchlist_write( void );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
22
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
23 int
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
24 Fetchlist_size( void );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
25
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
26 Bool
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
27 Fetchlist_contains( const char *name );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
28
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
29 /* Get element number index. */
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
30 Bool
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
31 Fetchlist_element( const char **name, FetchMode *mode, int index );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
32
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
33 /* Add entry. Invalidates any indices. Returns TRUE if new entry, FALSE if
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
34 entry was overwritten. */
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
35 Bool
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
36 Fetchlist_add( const char *name, FetchMode mode );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
37
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
38 /* Remove entry. Invalidates any indices. Returns FALSE if not found. */
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
39 Bool
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
40 Fetchlist_remove( const char *name );
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
41
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
42 #endif