/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega * * Copyright (C) 2001-2007 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #ifndef CHEROKEE_DIRS_TABLE_H #define CHEROKEE_DIRS_TABLE_H #include "common.h" #include "avl.h" #include "config_entry.h" typedef cherokee_avl_t cherokee_dirs_table_t; /* Web_directory -> config_entry */ #define DTABLE(x) ((cherokee_dirs_table_t *)(x)) ret_t cherokee_dirs_table_init (cherokee_dirs_table_t *pt); ret_t cherokee_dirs_table_mrproper (cherokee_dirs_table_t *pt); ret_t cherokee_dirs_table_clean (cherokee_dirs_table_t *pt); ret_t cherokee_dirs_table_get (cherokee_dirs_table_t *pt, cherokee_buffer_t *requested_url, cherokee_config_entry_t *plugin_entry, cherokee_buffer_t *web_directory); ret_t cherokee_dirs_table_add (cherokee_dirs_table_t *pt, char *dir, cherokee_config_entry_t *plugin_entry); ret_t cherokee_dirs_table_relink (cherokee_dirs_table_t *pt); #endif /* CHEROKEE_DIRS_TABLE_H */