diff content.h @ 0:04124a4423d4 noffle

[svn] Initial revision
author enz
date Tue, 04 Jan 2000 11:35:42 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/content.h	Tue Jan 04 11:35:42 2000 +0000
@@ -0,0 +1,65 @@
+/*
+  content.h
+
+  Contents of a newsgroup
+  - list of article overviews for selected group.
+
+  The overviews of all articles of a group are stored in an overview file,
+  filename SPOOLDIR/overview/GROUPNAME. One entire overview file is read
+  and cached in memory, at a time.
+
+  $Id: content.h 3 2000-01-04 11:35:42Z enz $ 
+*/
+
+#ifndef CONT_H
+#define CONT_H
+
+#include "over.h"
+
+/*
+  Try to read overviews from overview file for group <grp>.
+  Fill with fake articles, if something goes wrong.
+*/
+void
+Cont_read( const char *grp );
+
+/*
+  Append overview to current list and increment the current
+  group's last article counter. Ownership of the ptr is transfered
+  to content
+*/
+void
+Cont_app( Over *ov );
+
+/* Write content */
+void
+Cont_write( void );
+
+Bool
+Cont_validNumb( int numb );
+
+const Over *
+Cont_get( int numb );
+
+void
+Cont_delete( int numb );
+
+int
+Cont_first( void );
+
+int
+Cont_last( void );
+
+const char *
+Cont_grp( void );
+
+Bool
+Cont_nextGrp( Str result );
+
+Bool
+Cont_firstGrp( Str result );
+
+void
+Cont_expire( void );
+
+#endif