Mercurial > noffle
view src/request.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 | 32ba1198c6fa |
children | 6f99218719e4 |
line wrap: on
line source
/* request.h Collection of requested articles. $Id: request.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef REQ_H #define REQ_H #if HAVE_CONFIG_H #include <config.h> #endif #include "common.h" /* Is request for message msgId from server serv already recorded? This function has no error detection facility. On error, FALSE is returned. Nevertheless, errors are logged. */ Bool Req_contains( const char *serv, const char *msgId ); /* Add request for message "msgId" from server "serv". Return TRUE if successful. */ Bool Req_add( const char *serv, const char *msgId ); /* Remove request for message msgIg from server serv. This function does not return any errors. Nevertheless, they are logged. */ void Req_remove( const char *serv, const char *msgId ); /* Begin iteration through all messages requested from one server. Return TRUE if there are any requests. Save first message ID in msgId. On error, it is logged, and FALSE is returned. */ Bool Req_first( const char *serv, Str msgId ); /* Continue iteration. Return TRUE on success, FALSE when there are no more requests. Save message ID in msgId. On error, it is logged, and FALSE is returned. */ Bool Req_next( Str msgId ); /* Get exclusive access to the request files. Refresh cache as necessary. */ Bool Req_open(void); /* Write changes to disk */ void Req_close(void); #endif