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

namesize.c File Reference


Detailed Description

Handling of the (name, size) tuples.

Author:
Raphael Manfredi
Date:
2002-2003

#include "common.h"
#include "namesize.h"
#include "lib/atoms.h"
#include "lib/walloc.h"
#include "lib/override.h"

Functions

 RCSID ("$Id:namesize.c, v 1.3 2005/05/29 08:48:35 graaff Exp $")
guint namesize_hash (gconstpointer key)
 Hash a `namesize_t' key.

gint namesize_eq (gconstpointer a, gconstpointer b)
 Compare two `namesize_t' keys.

namesize_tnamesize_make (const gchar *name, filesize_t size)
 Create a new namesize structure.

void namesize_free (namesize_t *ns)
 Free a namesize structure.


Function Documentation

gint namesize_eq gconstpointer  a,
gconstpointer  b
 

Compare two `namesize_t' keys.

void namesize_free namesize_t ns  ) 
 

Free a namesize structure.

guint namesize_hash gconstpointer  key  ) 
 

Hash a `namesize_t' key.

namesize_t* namesize_make const gchar *  name,
filesize_t  size
 

Create a new namesize structure.

RCSID "$Id:namesize.  c,
v 1.3 2005/05/29 08:48:35 graaff Exp $" 
 


Generated on Sun Feb 12 10:50:04 2006 for Gtk-Gnutella by doxygen 1.3.6