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