GNUnet  0.11.x
Data Fields
GNUNET_FS_QueueEntry Struct Reference

Entry in the job queue. More...

#include </home/handbook/gnunet/src/fs/fs_api.h>

Collaboration diagram for GNUNET_FS_QueueEntry:
[legend]

Data Fields

struct GNUNET_FS_QueueEntrynext
 This is a linked list. More...
 
struct GNUNET_FS_QueueEntryprev
 This is a linked list. More...
 
GNUNET_SCHEDULER_TaskCallback start
 Function to call when the job is started. More...
 
GNUNET_SCHEDULER_TaskCallback stop
 Function to call when the job needs to stop (or is done / dequeued). More...
 
void * cls
 Closure for start and stop. More...
 
struct GNUNET_FS_Handleh
 Handle to FS primary context. More...
 
struct GNUNET_MQ_Handlemq
 Message queue handle, or NULL if job is not running. More...
 
struct GNUNET_TIME_Absolute queue_time
 Time the job was originally queued. More...
 
struct GNUNET_TIME_Absolute start_time
 Time the job was started last. More...
 
struct GNUNET_TIME_Relative run_time
 Total amount of time the job has been running (except for the current run). More...
 
unsigned int blocks
 How many blocks do the active downloads have? More...
 
enum GNUNET_FS_QueuePriority priority
 How important is this download? More...
 
unsigned int start_times
 How often have we (re)started this download? More...
 
int active
 GNUNET_YES if the job is active now. More...
 

Detailed Description

Entry in the job queue.

Definition at line 419 of file fs_api.h.

Field Documentation

◆ next

struct GNUNET_FS_QueueEntry* GNUNET_FS_QueueEntry::next

This is a linked list.

Definition at line 424 of file fs_api.h.

Referenced by process_job_queue().

◆ prev

struct GNUNET_FS_QueueEntry* GNUNET_FS_QueueEntry::prev

This is a linked list.

Definition at line 429 of file fs_api.h.

◆ start

GNUNET_SCHEDULER_TaskCallback GNUNET_FS_QueueEntry::start

Function to call when the job is started.

Definition at line 434 of file fs_api.h.

Referenced by GNUNET_FS_queue_(), and start_job().

◆ stop

GNUNET_SCHEDULER_TaskCallback GNUNET_FS_QueueEntry::stop

Function to call when the job needs to stop (or is done / dequeued).

Definition at line 439 of file fs_api.h.

Referenced by GNUNET_FS_queue_(), and stop_job().

◆ cls

void* GNUNET_FS_QueueEntry::cls

Closure for start and stop.

Definition at line 444 of file fs_api.h.

Referenced by GNUNET_FS_queue_(), start_job(), and stop_job().

◆ h

struct GNUNET_FS_Handle* GNUNET_FS_QueueEntry::h

Handle to FS primary context.

Definition at line 449 of file fs_api.h.

Referenced by GNUNET_FS_dequeue_(), GNUNET_FS_queue_(), start_job(), and stop_job().

◆ mq

struct GNUNET_MQ_Handle* GNUNET_FS_QueueEntry::mq

Message queue handle, or NULL if job is not running.

Definition at line 454 of file fs_api.h.

◆ queue_time

struct GNUNET_TIME_Absolute GNUNET_FS_QueueEntry::queue_time

Time the job was originally queued.

Definition at line 459 of file fs_api.h.

Referenced by GNUNET_FS_queue_().

◆ start_time

struct GNUNET_TIME_Absolute GNUNET_FS_QueueEntry::start_time

Time the job was started last.

Definition at line 464 of file fs_api.h.

Referenced by process_job_queue(), start_job(), and stop_job().

◆ run_time

struct GNUNET_TIME_Relative GNUNET_FS_QueueEntry::run_time

Total amount of time the job has been running (except for the current run).

Definition at line 470 of file fs_api.h.

Referenced by stop_job().

◆ blocks

unsigned int GNUNET_FS_QueueEntry::blocks

How many blocks do the active downloads have?

Definition at line 475 of file fs_api.h.

Referenced by GNUNET_FS_queue_(), process_job_queue(), start_job(), and stop_job().

◆ priority

enum GNUNET_FS_QueuePriority GNUNET_FS_QueueEntry::priority

How important is this download?

Definition at line 480 of file fs_api.h.

Referenced by GNUNET_FS_queue_(), and process_job_queue().

◆ start_times

unsigned int GNUNET_FS_QueueEntry::start_times

How often have we (re)started this download?

Definition at line 485 of file fs_api.h.

Referenced by process_job_queue(), and start_job().

◆ active

int GNUNET_FS_QueueEntry::active

GNUNET_YES if the job is active now.

Definition at line 490 of file fs_api.h.

Referenced by GNUNET_FS_dequeue_(), start_job(), and stop_job().


The documentation for this struct was generated from the following file: