2013-06-14 09:35:35 +00:00
|
|
|
#include "log.h"
|
|
|
|
|
2013-09-18 02:56:11 +00:00
|
|
|
static void logdump( const char *buf, ...) {
|
2013-06-14 09:35:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void (*logwrite)( const char *, ...) = logdump ;
|
2013-09-18 02:56:11 +00:00
|
|
|
|
2015-01-21 06:12:24 +00:00
|
|
|
static boolean logit( boolean retcode, const char *buf, ...) {
|
2013-09-18 02:56:11 +00:00
|
|
|
return retcode ;
|
|
|
|
}
|
|
|
|
|
2015-01-21 06:12:24 +00:00
|
|
|
boolean (*logger)( boolean, const char *, ...) = logit ;
|
2013-09-18 02:56:11 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* tell the user that this command is illegal while we are in
|
|
|
|
* VIEW (read-only) mode
|
|
|
|
*/
|
2015-01-20 14:34:28 +00:00
|
|
|
boolean rdonly( void) {
|
2015-01-21 06:12:24 +00:00
|
|
|
return logger( FALSE, "%B(Key illegal in VIEW mode)");
|
2013-09-18 02:56:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-01-20 14:34:28 +00:00
|
|
|
boolean resterr( void) {
|
2015-01-21 06:12:24 +00:00
|
|
|
return logger( FALSE, "%B(That command is RESTRICTED)");
|
2013-09-18 06:25:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|