Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

file_list Struct Reference

A data file used by Privoxy. More...


Data Fields

void * f
void(* unloader )(void *)
int active
time_t lastmodified
char * filename
file_list * next


Detailed Description

A data file used by Privoxy.

Kept in a linked list.


Field Documentation

int file_list::active
 

Used internally by sweep().

Do not access from elsewhere.

void* file_list::f
 

This is a pointer to the data structures associated with the file.

Read-only once the structure has been created.

char* file_list::filename
 

The full filename.

time_t file_list::lastmodified
 

File last-modified time, so we can check if file has been changed.

Read-only once the structure has been created.

struct file_list* file_list::next
 

Pointer to next entry in the linked list of all "file_list"s.

This linked list is so that sweep() can navigate it. Since sweep() can remove items from the list, we must be careful to only access this value from main thread (when we know sweep won't be running).

void(* file_list::unloader)(void *)
 

The unloader function.

Normally NULL. When we are finished with file (i.e. when we have loaded a new one), set to a pointer to an unloader function. Unloader will be called by sweep() (called from main loop) when all clients using this file are done. This prevents threading problems.


The documentation for this struct was generated from the following file:
Generated on Tue Jun 4 18:54:49 2002 for Privoxy 3.1.1 by doxygen1.2.15