Mercurial > noffle
view src/content.h @ 281:5eece4dfd945 noffle
[svn] * src/log.c,src/log.h: Add Log_fatal() for reporting fatal errors
and exiting, Log_gdbm_fatal() for the the same but specifically as
a GDBM error reporting function, and a new log debug level AUTH for
a forthcoming authentication mechanism.
* src/database.c,src/group.c: Provide new gdbm error function to all
gdbm opens.
* src/noffle.c: Add atexit() to always close databases on a program-
inspired exit.
* src/content.c,src/dynamicstring.c,src/fetchlist.c,src/filter.c,
src/itemlist.c,src/log.c,src/log.h,src/over.c,src/protocol.h,
src/request.c,src/util.c: Use Log_fatal where appropriate.
author | bears |
---|---|
date | Fri, 27 Dec 2002 21:48:25 +0000 |
parents | 52f467c7213b |
children |
line wrap: on
line source
/* 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 387 2002-06-26 13:15:44Z bears $ */ #ifndef CONT_H #define CONT_H #if HAVE_CONFIG_H #include <config.h> #endif #include "over.h" /* Try to read overviews from overview file for group <grp>. Ignore any badly-formatted lines and create a new empty overview file if no lines can be read. */ 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. Return FALSE on error. */ Bool 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 ); int Cont_find( const char *msgId ); const char * Cont_grp( void ); Bool Cont_nextGrp( Str result ); Bool Cont_firstGrp( Str result ); void Cont_expire( void ); Bool Cont_exists( const char *grp ); #endif