Blame include/report.h

Packit Service 5e8d2a
/* aide, Advanced Intrusion Detection Environment
Packit Service 5e8d2a
 *
Packit Service 5e8d2a
 * Copyright (C) 1999-2002,2010 Rami Lehti, Pablo Virolainen, Richard
Packit Service 5e8d2a
 * van den Berg
Packit Service 5e8d2a
 * $Header$
Packit Service 5e8d2a
 *
Packit Service 5e8d2a
 * This program is free software; you can redistribute it and/or
Packit Service 5e8d2a
 * modify it under the terms of the GNU General Public License as
Packit Service 5e8d2a
 * published by the Free Software Foundation; either version 2 of the
Packit Service 5e8d2a
 * License, or (at your option) any later version.
Packit Service 5e8d2a
 *
Packit Service 5e8d2a
 * This program is distributed in the hope that it will be useful, but
Packit Service 5e8d2a
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 5e8d2a
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Packit Service 5e8d2a
 * General Public License for more details.
Packit Service 5e8d2a
 *
Packit Service 5e8d2a
 * You should have received a copy of the GNU General Public License
Packit Service 5e8d2a
 * along with this program; if not, write to the Free Software
Packit Service 5e8d2a
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
Packit Service 5e8d2a
 */
Packit Service 5e8d2a
Packit Service 5e8d2a
#ifndef _ERROR_H_INCLUDED
Packit Service 5e8d2a
#define  _ERROR_H_INCLUDED
Packit Service 5e8d2a
Packit Service 5e8d2a
#include <stdio.h>
Packit Service 5e8d2a
#include <stdarg.h>
Packit Service 5e8d2a
#include "db_config.h"
Packit Service 5e8d2a
#include "url.h"
Packit Service 5e8d2a
Packit Service 5e8d2a
/* Exitcodes */
Packit Service 5e8d2a
#define ERROR_WRITING_ERROR 14
Packit Service 5e8d2a
#define INVALID_ARGUMENT_ERROR 15
Packit Service 5e8d2a
#define UNIMPLEMENTED_FUNCTION_ERROR 16
Packit Service 5e8d2a
#define INVALID_CONFIGURELINE_ERROR 17
Packit Service 5e8d2a
#define IO_ERROR 18
Packit Service 5e8d2a
#define VERSION_MISMATCH_ERROR 19
Packit Service 5e8d2a
Packit Service 5e8d2a
/* Errorcodes */
Packit Service 5e8d2a
#define HASH_ALGO_ERROR 30
Packit Service 5e8d2a
Packit Service 5e8d2a
void error(int errorlevel, char* error_msg,...)
Packit Service 5e8d2a
#ifdef __GNUC__
Packit Service 5e8d2a
        __attribute__ ((format (printf, 2, 3)));
Packit Service 5e8d2a
#else
Packit Service 5e8d2a
 ;
Packit Service 5e8d2a
#endif
Packit Service 5e8d2a
Packit Service 5e8d2a
int error_init(url_t*,int);
Packit Service 5e8d2a
Packit Service 5e8d2a
void write_error_stderr(int errorlevel, char*error_msg,va_list ap);
Packit Service 5e8d2a
Packit Service 5e8d2a
Packit Service 5e8d2a
#endif