Mercurial > noffle
view src/control.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 |
line wrap: on
line source
/* control.h Control actions needed by server and command line. $Id: control.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef CONTROL_H #define CONTROL_H #if HAVE_CONFIG_H #include <config.h> #endif #define CANCEL_OK 0 #define CANCEL_NO_SUCH_MSG 1 #define CANCEL_NEEDS_MSG 2 /* Cancel a message. Return CANCEL_OK if completely cancelled, CANCEL_NO_SUCH_MSG if no message with that ID exists, and CANCEL_NEEDS_MSG if a 'cancel' message should be propagated upstream to cancel the message elsewhere. */ int Ctrl_cancel( const char *msgId ); #endif