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

fileinfo.h File Reference

#include "common.h"
#include "if/core/downloads.h"

Go to the source code of this file.

Data Structures

struct  gnet_fi_info
struct  gnet_fi_status
struct  gnet_fi_chunks
struct  dl_file_info

Defines

#define FILE_INFO_COMPLETE(x)   ((x)->done == (x)->size && (x)->file_size_known)
#define FILE_INFO_COMPLETE_AFTER(x, z)   ((x)->done + (z) >= (x)->size && (x)->file_size_known)

Typedefs

typedef guint32 gnet_fi_t
typedef gnet_fi_info gnet_fi_info_t
typedef gnet_fi_status gnet_fi_status_t
typedef gnet_fi_chunks gnet_fi_chunks_t
typedef dl_file_info fileinfo_t
typedef void(* fi_listener_t )(gnet_fi_t)
typedef void(* fi_src_listener_t )(gnet_fi_t, gnet_src_t)

Enumerations

enum  dl_chunk_status { DL_CHUNK_EMPTY = 0, DL_CHUNK_BUSY = 1, DL_CHUNK_DONE = 2 }
 These used to be in fileinfo.h, but we need them now at several places. More...

enum  gnet_fi_ev_t {
  EV_FI_ADDED = 0, EV_FI_REMOVED, EV_FI_INFO_CHANGED, EV_FI_STATUS_CHANGED,
  EV_FI_STATUS_CHANGED_TRANSIENT, EV_FI_SRC_ADDED, EV_FI_SRC_REMOVED, EV_FI_RANGES_CHANGED,
  EV_FI_EVENTS
}


Define Documentation

#define FILE_INFO_COMPLETE  )     ((x)->done == (x)->size && (x)->file_size_known)
 

#define FILE_INFO_COMPLETE_AFTER x,
 )     ((x)->done + (z) >= (x)->size && (x)->file_size_known)
 


Typedef Documentation

typedef void(* fi_listener_t)(gnet_fi_t)
 

typedef void(* fi_src_listener_t)(gnet_fi_t, gnet_src_t)
 

typedef struct dl_file_info fileinfo_t
 

typedef struct gnet_fi_chunks gnet_fi_chunks_t
 

typedef struct gnet_fi_info gnet_fi_info_t
 

typedef struct gnet_fi_status gnet_fi_status_t
 

typedef guint32 gnet_fi_t
 


Enumeration Type Documentation

enum dl_chunk_status
 

These used to be in fileinfo.h, but we need them now at several places.

Enumeration values:
DL_CHUNK_EMPTY  No data available yet.
DL_CHUNK_BUSY  Being downloaded.
DL_CHUNK_DONE  Downloaded.

enum gnet_fi_ev_t
 

Enumeration values:
EV_FI_ADDED  fi_listener
EV_FI_REMOVED  fi_listener
EV_FI_INFO_CHANGED  fi_listener
EV_FI_STATUS_CHANGED  fi_listener
EV_FI_STATUS_CHANGED_TRANSIENT  fi_listener
EV_FI_SRC_ADDED  fi_src_listener
EV_FI_SRC_REMOVED  fi_src_listener
EV_FI_RANGES_CHANGED  fi_listener
EV_FI_EVENTS  Number of events in this domain.


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