|
Packit |
762fc5 |
/* aide, Advanced Intrusion Detection Environment
|
|
Packit |
762fc5 |
*
|
|
Packit |
762fc5 |
* Copyright (C) 1999-2002,2004,2006,2010 Rami Lehti, Pablo Virolainen,
|
|
Packit |
762fc5 |
* Richard 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 _DB_SQL_H_INCLUDED
|
|
Packit |
762fc5 |
#define _DB_SQL_H_INCLUDED
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
static const char* db_sql_types[] = {
|
|
Packit |
762fc5 |
"text unique primary key",/* "name", */
|
|
Packit |
762fc5 |
"text", /* "lname", */
|
|
Packit |
762fc5 |
"int", /* "perm", */
|
|
Packit |
762fc5 |
"int", /* "uid", */
|
|
Packit |
762fc5 |
"int", /* "gid", */
|
|
Packit |
762fc5 |
"bigint", /* "size", */
|
|
Packit |
762fc5 |
"text", /* "atime", */
|
|
Packit |
762fc5 |
"text", /* "ctime", */
|
|
Packit |
762fc5 |
"text", /* "mtime", */
|
|
Packit |
762fc5 |
"int", /* "inode", */
|
|
Packit |
762fc5 |
"int", /* "bcount", */
|
|
Packit |
762fc5 |
"int", /* "lcount", */
|
|
Packit |
762fc5 |
"text", /* "md5", */
|
|
Packit |
762fc5 |
"text", /* "sha1", */
|
|
Packit |
762fc5 |
"text", /* "rmd160", */
|
|
Packit |
762fc5 |
"text", /* "tiger", */
|
|
Packit |
762fc5 |
"text", /* "crc32", */
|
|
Packit |
762fc5 |
"text", /* "haval", */
|
|
Packit |
762fc5 |
"text", /* "gost", */
|
|
Packit |
762fc5 |
"text", /* "crc32b", */
|
|
Packit |
762fc5 |
"int", /* "attr", */
|
|
Packit |
762fc5 |
"text", /* "acl", */
|
|
Packit |
762fc5 |
"int", /* "checkmask", */
|
|
Packit |
762fc5 |
"text" /* "unknown" */
|
|
Packit |
762fc5 |
};
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
int db_close_sql(void*);
|
|
Packit |
762fc5 |
db_line* db_readline_sql(int db, db_config* conf);
|
|
Packit |
762fc5 |
int db_writeline_sql(db_line* line,db_config* conf);
|
|
Packit |
762fc5 |
int db_writespec_sql(db_config* conf);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
#endif
|