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

record Struct Reference

#include <search_common.h>


Detailed Description

An individual hit.

It referes to a file entry on the remote servent, as identified by the parent results_set structure that contains this hit.

When a record is kept in a search window for display, it is put into a hash table and its `refcount' is incremented: since the parent structure can be dispatched to various searches, each record can be inserted in so many different hash tables (one per search).


Data Fields

results_set_tresults_set
 Parent, containing record.

gint refcount
 Number of hash tables it has been put to.

record_magic_t magic
 Magic ID.

gchar * name
 Filename (atom).

gchar * ext
 File extension (atom).

gchar * utf8_name
 Filename converted to UTF-8 (atom).

const gchar * charset
 Detected charset of name (static const).

filesize_t size
 Size of file, in bytes.

guint32 index
 Index for GET command.

gchar * sha1
 SHA1 URN (binary form, atom).

gchar * xml
 Optional XML data string (atom).

gchar * tag
 Optional tag data string (atom).

gchar * info
 Short version of tag (atom).

gnet_host_vec_talt_locs
 Optional alternate locations for record.

flag_t flags
 same flags as in gnet_record_t


Field Documentation

gnet_host_vec_t* record::alt_locs
 

Optional alternate locations for record.

const gchar* record::charset
 

Detected charset of name (static const).

gchar* record::ext
 

File extension (atom).

flag_t record::flags
 

same flags as in gnet_record_t

guint32 record::index
 

Index for GET command.

gchar* record::info
 

Short version of tag (atom).

record_magic_t record::magic
 

Magic ID.

gchar* record::name
 

Filename (atom).

gint record::refcount
 

Number of hash tables it has been put to.

results_set_t* record::results_set
 

Parent, containing record.

gchar* record::sha1
 

SHA1 URN (binary form, atom).

filesize_t record::size
 

Size of file, in bytes.

gchar* record::tag
 

Optional tag data string (atom).

gchar* record::utf8_name
 

Filename converted to UTF-8 (atom).

gchar* record::xml
 

Optional XML data string (atom).


The documentation for this struct was generated from the following file:
Generated on Sun Feb 12 10:50:13 2006 for Gtk-Gnutella by doxygen 1.3.6