enforce_task.h File Reference
`#include "daemon/cfg.h"`
`#include "daemon/engine.h"`
`#include "scheduler/task.h"`
`#include "db/policy.h"`

Go to the source code of this file.

## Functions

task_type * | enforce_task (engine_type *engine, char const *owner)
time_t | enforce_task_perform (task_type *task, char const *owner, void *context, void *dbconn)
void | enforce_task_flush_zone (engine_type *engine, char const *zonename)
void | enforce_task_flush_policy (engine_type *engine, db_connection_t *dbconn, policy_t const *policy)
void | enforce_task_flush_all (engine_type *engine, db_connection_t *dbconn)

## Function Documentation

## enforce_task()

task_type* enforce_task | ( | engine_type * | engine,
|  | char const * | owner
| ) |  |

Definition at line 145 of file enforce_task.c.

References enforce_task_perform().

Referenced by enforce_task_flush_zone().

## enforce_task_flush_all()

void enforce_task_flush_all | ( | engine_type * | engine,
|  | db_connection_t * | dbconn
| ) |  |

Definition at line 179 of file enforce_task.c.

References db_connection_free(), and zone_list_db_new_get().

## enforce_task_flush_policy()

void enforce_task_flush_policy | ( | engine_type * | engine,
|  | db_connection_t * | dbconn,
|  | policy_t const * | policy
| ) |  |

Definition at line 158 of file enforce_task.c.

References policy_id(), and zone_list_db_new_get_by_policy_id().

## enforce_task_flush_zone()

void enforce_task_flush_zone | ( | engine_type * | engine,
|  | char const * | zonename
| ) |  |

Definition at line 152 of file enforce_task.c.

References enforce_task(), and engine_struct::taskq.

## enforce_task_perform()

time_t enforce_task_perform | ( | task_type * | task,
|  | char const * | owner,
|  | void * | context,
|  | void * | dbconn
| ) |  |

Definition at line 138 of file enforce_task.c.

Referenced by enforce_task().