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

archiver.h File Reference

The archiver function declarations. More...

Go to the source code of this file.

Typedefs

typedef int(* t_archive_filter )(t_thread *thr)

Functions

time_t cf_get_time (GdomeNode *n)
void cf_make_path (u_char *path)
void cf_archive_threads (t_thread **to_archive, int len)
void cf_run_archiver_and_write_to_disk (void)
void cf_archive_thread (int sockfd, u_int64_t tid)
void cf_delete_threadfile (t_thread *t)


Detailed Description

The archiver function declarations.

Author:
Christian Kruse, <cjk@wwwtech.de>
This file contains the archiver functions. The archiver is complex enough to give him an own file.

Definition in file archiver.h.


Typedef Documentation

typedef int(* t_archive_filter)(t_thread *thr)
 

Function type for archiver plugins.

Parameters:
thr The thread structure of the thread to archive
Returns:
FLT_OK, FLT_DECLINE or FLT_EXIT. FLT_EXIT means, do *not* archive, so be careful!

Definition at line 28 of file archiver.h.


Function Documentation

void cf_archive_thread int  sockfd,
u_int64_t  tid
 

This function archives a specific thread.

Parameters:
sockfd The client socket from which the request came
tid The thread id of the thread to archive

Definition at line 545 of file archiver.c.

void cf_archive_threads t_thread **  to_archive,
int  len
 

This function archives a list of threads to their right position in the archive.

Parameters:
to_archive The thread list of to archive threads
len The length of the list

Definition at line 126 of file archiver.c.

void cf_delete_threadfile t_thread t  ) 
 

This function deletes an archived thread file

Parameters:
t The thread structure

Definition at line 55 of file archiver.c.

time_t cf_get_time GdomeNode *  n  ) 
 

Reads the <Date longSec="epochseconds"/> element and returns them.

Parameters:
n The <Header> element
Returns:
0 on error, the epoch secons on success

Definition at line 65 of file archiver.c.

void cf_make_path u_char *  path  ) 
 

This function creates the path segments if necessary. Beginning from the start on every / it stops and calls mkdir() with the string to the actual position

Parameters:
path The full path

Definition at line 98 of file archiver.c.

void cf_run_archiver_and_write_to_disk void   ) 
 

This function runs the archiver and writes the actual threadlist to disk. It gets exclusive access to the postings, so don't call this function *too* often!

Definition at line 292 of file archiver.c.


Generated on Sun Apr 25 16:37:39 2004 for Classic Forum by doxygen 1.3.5