-#include "meta.h"
-#include "connection.h"
-#include "logger.h"
-
-#include "system.h"
-
-/* Status strings */
-
-static char (*status_text[]) = {
- "Warning",
-};
-
-/* Error strings */
-
-static char (*error_text[]) = {
- "Error",
-};
-
-/* Status and error notification routines */
-
-int send_status(connection_t *c, int statusno, char *statusstring)
-{
- cp();
-
- if(!statusstring)
- statusstring = status_text[statusno];
-
- return send_request(c, "%d %d %s", STATUS, statusno, statusstring);
-}
-
-int status_h(connection_t *c)
-{
- int statusno;
- char statusstring[MAX_STRING_SIZE];
-
- cp();
-
- if(sscanf(c->buffer, "%*d %d " MAX_STRING, &statusno, statusstring) != 2) {
- logger(DEBUG_ALWAYS, LOG_ERR, _("Got bad %s from %s (%s)"), "STATUS",
- c->name, c->hostname);
- return -1;
- }
-
- logger(DEBUG_STATUS, LOG_NOTICE, _("Status message from %s (%s): %s: %s"),
- c->name, c->hostname, status_text[statusno], statusstring);
-
- return 0;
-}
-
-int send_error(connection_t *c, int err, char *errstring)
-{
- cp();