OpenDNSSEC-signer
1.4.1
|
Go to the source code of this file.
Data Structures | |
struct | task_struct |
Typedefs | |
typedef enum task_id_enum | task_id |
typedef struct task_struct | task_type |
Enumerations | |
enum | task_id_enum { TASK_NONE = 0, TASK_SIGNCONF, TASK_READ, TASK_NSECIFY, TASK_SIGN, TASK_WRITE } |
Functions | |
task_type * | task_create (task_id what, time_t when, void *zone) |
void | task_backup (FILE *fd, task_type *task) |
int | task_compare (const void *a, const void *b) |
char * | task2str (task_type *task, char *buftask) |
const char * | task_what2str (task_id what) |
const char * | task_who2str (task_type *task) |
void | task_print (FILE *out, task_type *task) |
void | task_log (task_type *task) |
void | task_cleanup (task_type *task) |
typedef enum task_id_enum task_id |
typedef struct task_struct task_type |
enum task_id_enum |
char* task2str | ( | task_type * | task, |
char * | buftask | ||
) |
Convert task to string.
[in] | task | task |
[out] | buffer | to store string-based task in |
Convert task to string.
Definition at line 196 of file task.c.
References task_struct::flush, ods_log_error(), task_what2str(), task_who2str(), task_struct::what, and task_struct::when.
void task_backup | ( | FILE * | fd, |
task_type * | task | ||
) |
Backup task.
[in] | fd | file descriptor |
[in] | task | task |
Backup task.
Definition at line 89 of file task.c.
References task_struct::backoff, task_struct::flush, task_struct::halted, task_struct::interrupt, ods_log_assert, task_struct::what, and task_struct::when.
void task_cleanup | ( | task_type * | task) |
Clean up task.
[in] | task | task |
Clean up task.
Definition at line 277 of file task.c.
References task_struct::allocator, allocator_cleanup(), and allocator_deallocate().
Referenced by engine_update_zones().
int task_compare | ( | const void * | a, |
const void * | b | ||
) |
Compare tasks.
[in] | a | one task |
[in] | b | another task |
Compare tasks.
Definition at line 114 of file task.c.
References zone_struct::apex, ods_log_assert, task_struct::what, task_struct::when, and task_struct::zone.
Referenced by schedule_create().
Create a new task.
[in] | what | task identifier |
[in] | when | scheduled time |
[in] | zone | zone reference |
Create a new task.
Definition at line 50 of file task.c.
References task_struct::allocator, allocator_alloc(), allocator_cleanup(), allocator_create(), task_struct::backoff, task_struct::flush, task_struct::halted, task_struct::halted_when, task_struct::interrupt, ods_log_error(), TASK_NONE, task_struct::what, task_struct::when, and task_struct::zone.
Referenced by engine_update_zones(), and zone_recover2().
void task_log | ( | task_type * | task) |
Log task.
[in] | task | task |
Log task.
Definition at line 255 of file task.c.
References task_struct::flush, ods_log_debug(), task_what2str(), task_who2str(), task_struct::what, and task_struct::when.
Referenced by schedule_task().
void task_print | ( | FILE * | out, |
task_type * | task | ||
) |
Print task.
[in] | out | file descriptor |
[in] | task | task |
Print task.
Definition at line 233 of file task.c.
References task_struct::flush, task_what2str(), task_who2str(), task_struct::what, and task_struct::when.
Referenced by schedule_print().
const char* task_what2str | ( | task_id | what) |
String-format of who.
[in] | what | task identifier |
String-format of what.
Definition at line 148 of file task.c.
References TASK_NONE, TASK_READ, TASK_SIGN, TASK_SIGNCONF, and TASK_WRITE.
Referenced by schedule_task(), task2str(), task_log(), task_print(), and unschedule_task().
const char* task_who2str | ( | task_type * | task) |
String-format of who.
[in] | task | task |
String-format of who.
Definition at line 178 of file task.c.
References zone_struct::name, and task_struct::zone.
Referenced by schedule_pop_task(), schedule_task(), task2str(), task_log(), task_print(), and unschedule_task().