GNUnet 0.22.2
GNUNET_FS_QueueEntry Struct Reference

Entry in the job queue. More...

#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/service/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 420 of file fs_api.h.

Field Documentation

◆ next

struct GNUNET_FS_QueueEntry* GNUNET_FS_QueueEntry::next

This is a linked list.

Definition at line 425 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 430 of file fs_api.h.

◆ start

GNUNET_SCHEDULER_TaskCallback GNUNET_FS_QueueEntry::start

Function to call when the job is started.

Definition at line 435 of file fs_api.h.

◆ stop

GNUNET_SCHEDULER_TaskCallback GNUNET_FS_QueueEntry::stop

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

Definition at line 440 of file fs_api.h.

Referenced by GNUNET_FS_queue_().

◆ cls

void* GNUNET_FS_QueueEntry::cls

Closure for start and stop.

Definition at line 445 of file fs_api.h.

Referenced by GNUNET_FS_queue_().

◆ h

struct GNUNET_FS_Handle* GNUNET_FS_QueueEntry::h

Handle to FS primary context.

Definition at line 450 of file fs_api.h.

◆ mq

struct GNUNET_MQ_Handle* GNUNET_FS_QueueEntry::mq

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

Definition at line 455 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 460 of file fs_api.h.

◆ start_time

struct GNUNET_TIME_Absolute GNUNET_FS_QueueEntry::start_time

Time the job was started last.

Definition at line 465 of file fs_api.h.

◆ 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 471 of file fs_api.h.

◆ blocks

unsigned int GNUNET_FS_QueueEntry::blocks

How many blocks do the active downloads have?

Definition at line 476 of file fs_api.h.

Referenced by GNUNET_FS_queue_().

◆ priority

enum GNUNET_FS_QueuePriority GNUNET_FS_QueueEntry::priority

How important is this download?

Definition at line 481 of file fs_api.h.

Referenced by GNUNET_FS_queue_().

◆ start_times

unsigned int GNUNET_FS_QueueEntry::start_times

How often have we (re)started this download?

Definition at line 486 of file fs_api.h.

◆ active

int GNUNET_FS_QueueEntry::active

GNUNET_YES if the job is active now.

Definition at line 491 of file fs_api.h.


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