OpenDNSSEC-signer  1.3.8
Functions
/build/buildd/opendnssec-1.3.8/signer/src/scheduler/task.c File Reference
#include "config.h"
#include "scheduler/task.h"
#include "shared/allocator.h"
#include "shared/duration.h"
#include "shared/file.h"
#include "shared/log.h"
#include "signer/backup.h"
Include dependency graph for task.c:

Go to the source code of this file.

Functions

task_typetask_create (task_id what, time_t when, const char *who, void *zone)
task_typetask_recover_from_backup (const char *filename, void *zone)
void task_backup (FILE *fd, task_type *task)
void task_cleanup (task_type *task)
int task_compare (const void *a, const void *b)
const char * task_what2str (int what)
const char * task_who2str (const char *who)
char * task2str (task_type *task, char *buftask)
void task_print (FILE *out, task_type *task)
void task_log (task_type *task)

Function Documentation

char* task2str ( task_type task,
char *  buftask 
)

Convert task to string.

Definition at line 273 of file task.c.

References task_struct::flush, task_what2str(), task_who2str(), task_struct::what, task_struct::when, and task_struct::who.

void task_backup ( FILE *  fd,
task_type task 
)
void task_cleanup ( task_type task)
int task_compare ( const void *  a,
const void *  b 
)

Compare tasks.

Definition at line 193 of file task.c.

References task_struct::dname, ods_log_assert, task_struct::what, and task_struct::when.

Referenced by schedule_create().

task_type* task_create ( task_id  what,
time_t  when,
const char *  who,
void *  zone 
)
void task_log ( task_type task)
void task_print ( FILE *  out,
task_type task 
)

Print task.

Definition at line 305 of file task.c.

References task_struct::flush, task_what2str(), task_who2str(), task_struct::what, task_struct::when, and task_struct::who.

Referenced by schedule_print().

task_type* task_recover_from_backup ( const char *  filename,
void *  zone 
)
const char* task_what2str ( int  what)

String-format of what.

Definition at line 222 of file task.c.

References TASK_AUDIT, TASK_NONE, TASK_NSECIFY, TASK_READ, TASK_SIGN, TASK_SIGNCONF, and TASK_WRITE.

Referenced by schedule_task(), task2str(), task_log(), task_print(), unschedule_task(), and zone_load_signconf().

const char* task_who2str ( const char *  who)

String-format of who.

Definition at line 259 of file task.c.

Referenced by schedule_task(), task2str(), task_log(), task_print(), and unschedule_task().