Main Page | Class List | File List | Class Members | File Members

file_share Struct Reference

#include <share.h>

List of all members.

Public Attributes

Disk
char * path
char * root
char * mime
time_t mtime
off_t size
Object
unsigned int ref
Meta/Supplementary
Dataset * meta
Dataset * hash
Dataset * udata
Deprecated
protocolp


Detailed Description

Structure used to describe a complete shared file. This is used by giFT and plugins internally, and is required for some of the plugin communication. Learn it, use it, love it.


Member Data Documentation

Dataset* file_share::hash
 

AsciiType -> BinaryHash

Dataset* file_share::meta
 

ASCII NUL-terminated meta data

char* file_share::mime
 

Pointer to the mime lookup table in src/mime.c

time_t file_share::mtime
 

Modification time as reported by stat(2)

struct protocol* file_share::p
 

Convenience member to determine which domain the object was created in

char* file_share::path
 

Local path in UNIX form

unsigned int file_share::ref
 

Current mortality count

char* file_share::root
 

Original sharing/root that caught this file, such as "/data/movies"

off_t file_share::size
 

Size in bytes as reported by stat(2)

Dataset* file_share::udata
 

Associated user data set


The documentation for this struct was generated from the following file:
Generated on Sun Aug 22 08:08:53 2004 by doxygen 1.3.7