Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

hashlist.h

Go to the documentation of this file.
00001 /*
00002  * $Id: hashlist.h,v 1.3 2004/11/14 21:36:28 rmanfredi Exp $
00003  *
00004  * Copyright (c) 2003, Christian Biere
00005  *
00006  *----------------------------------------------------------------------
00007  * This file is part of gtk-gnutella.
00008  *
00009  *  gtk-gnutella is free software; you can redistribute it and/or modify
00010  *  it under the terms of the GNU General Public License as published by
00011  *  the Free Software Foundation; either version 2 of the License, or
00012  *  (at your option) any later version.
00013  *
00014  *  gtk-gnutella is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  *  GNU General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU General Public License
00020  *  along with gtk-gnutella; if not, write to the Free Software
00021  *  Foundation, Inc.:
00022  *      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023  *----------------------------------------------------------------------
00024  */
00025 
00026 #ifndef _hashlist_h_
00027 #define _hashlist_h_
00028 
00029 #include <glib.h>
00030 
00031 typedef struct hash_list_iter hash_list_iter_t;
00032 typedef struct hash_list hash_list_t;
00033 
00034 hash_list_t *hash_list_new(void);
00035 void hash_list_free(hash_list_t *hl);
00036 void hash_list_clear(hash_list_t *hl);
00037 void hash_list_remove(hash_list_t *hl, gpointer data);
00038 void hash_list_append(hash_list_t *hl, gpointer data);
00039 void hash_list_prepend(hash_list_t *hl, gpointer data);
00040 gpointer hash_list_first(const hash_list_t *hl);
00041 gpointer hash_list_last(const hash_list_t *hl);
00042 gint hash_list_length(const hash_list_t *hl);
00043 hash_list_iter_t *hash_list_iterator(hash_list_t *hl);
00044 hash_list_iter_t *hash_list_iterator_last(hash_list_t *hl);
00045 void hash_list_release(hash_list_iter_t *i);
00046 gboolean hash_list_has_next(const hash_list_iter_t *i);
00047 gboolean hash_list_has_previous(const hash_list_iter_t *i);
00048 gboolean hash_list_has_follower(const hash_list_iter_t *i);
00049 gpointer hash_list_next(hash_list_iter_t *i);
00050 gpointer hash_list_previous(hash_list_iter_t *i);
00051 gpointer hash_list_follower(hash_list_iter_t *i);
00052 gboolean hash_list_contains(hash_list_t *hl, gpointer data);
00053 void hash_list_foreach(const hash_list_t *hl, GFunc func, gpointer user_data);
00054 
00055 #endif  /* _hashlist_h_ */

Generated on Sun Feb 12 10:49:56 2006 for Gtk-Gnutella by doxygen 1.3.6