|
Packit |
762fc5 |
/* aide, Advanced Intrusion Detection Environment
|
|
Packit |
762fc5 |
*
|
|
Packit |
762fc5 |
* Copyright (C) 1999,2000,2001,2002 Rami Lehti,Pablo Virolainen
|
|
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 |
#include "db_list.h"
|
|
Packit |
762fc5 |
/*for locale support*/
|
|
Packit |
762fc5 |
#include "locale-aide.h"
|
|
Packit |
762fc5 |
/*for locale support*/
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
void db_list_append(db_list*item)
|
|
Packit |
762fc5 |
{
|
|
Packit |
762fc5 |
db_list* tmp_listp=NULL;
|
|
Packit |
762fc5 |
item->next=NULL;
|
|
Packit |
762fc5 |
item->prev=NULL;
|
|
Packit |
762fc5 |
item->head=NULL;
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
if(db_list_head==NULL){
|
|
Packit |
762fc5 |
db_list_head=item;
|
|
Packit |
762fc5 |
db_list_head->next=NULL;
|
|
Packit |
762fc5 |
db_list_head->prev=NULL;
|
|
Packit |
762fc5 |
db_list_head->head=db_list_head;
|
|
Packit |
762fc5 |
db_list_head->tail=db_list_head;
|
|
Packit |
762fc5 |
return;
|
|
Packit |
762fc5 |
}
|
|
Packit |
762fc5 |
else {
|
|
Packit |
762fc5 |
tmp_listp=db_list_head->tail;
|
|
Packit |
762fc5 |
tmp_listp->next=item;
|
|
Packit |
762fc5 |
tmp_listp->tail=item;
|
|
Packit |
762fc5 |
item->head=db_list_head;
|
|
Packit |
762fc5 |
item->tail=db_list_head;
|
|
Packit |
762fc5 |
db_list_head->tail=item;
|
|
Packit |
762fc5 |
return;
|
|
Packit |
762fc5 |
}
|
|
Packit |
762fc5 |
}
|
|
Packit |
762fc5 |
|