/ gwdirdata.h / Content
/* GWhere
* Copyright (C) 2000 Sébastien LECACHEUR
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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 GW_DATA_DIR_DATA_H
#define GW_DATA_DIR_DATA_H
#include
#include "gwfileinfo.h"
struct dir_data;
struct dir_data * dir_data_new ( void);
gint dir_data_set_info ( struct dir_data *p, struct file_info *info);
gint dir_data_set_child ( struct dir_data *p, GList *child);
gint dir_data_append_child ( struct dir_data *p, struct file_info *child);
gint dir_data_remove_child ( struct dir_data *p, struct file_info *child);
struct file_info * dir_data_get_info ( struct dir_data *p);
GList * dir_data_get_child ( struct dir_data *p);
GList * dir_data_get_child_named ( struct dir_data *p, gchar *name);
int dir_data_get_num_file ( struct dir_data *p);
gboolean dir_data_free ( struct dir_data *p);
#endif