engine.h File Reference
`#include "config.h"`
`#include <signal.h>`
`#include "daemon/cfg.h"`
`#include "cmdhandler.h"`
`#include "daemon/dnshandler.h"`
`#include "daemon/xfrhandler.h"`
`#include "scheduler/worker.h"`
`#include "scheduler/schedule.h"`
`#include "status.h"`
`#include "locks.h"`
`#include "signer/zonelist.h"`
`#include "wire/edns.h"`

Go to the source code of this file.

## Data Structures

struct | engine_struct

## Typedefs

typedef struct engine_struct | engine_type

## Functions

int | engine_start (const char *cfgfile, int cmdline_verbosity, int daemonize, int info)
void | engine_wakeup_workers (engine_type *engine)
void | engine_update_zones (engine_type *engine, ods_status zl_changed)
void | engine_cleanup (engine_type *engine)

## Typedef Documentation

## engine_type

typedef struct engine_struct engine_type

The engine.

Definition at line 38 of file engine.h.

## Function Documentation

## engine_cleanup()

void engine_cleanup | ( | engine_type * | engine | ) |

Clean up engine.

Parameters

  [in] | engine | engine

Clean up engine.

Definition at line 877 of file engine.c.

References engine_struct::cmdhandler, engine_struct::config, engine_struct::dnshandler, dnshandler_cleanup(), engine_config_cleanup(), engineconfig_struct::num_signer_threads, engineconfig_struct::num_worker_threads, engine_struct::signal_cond, engine_struct::signal_lock, engine_struct::taskq, engine_struct::workers, engine_struct::xfrhandler, xfrhandler_cleanup(), engine_struct::zonelist, and zonelist_cleanup().

## engine_start()

int engine_start | ( | const char * | cfgfile,
|  | int | cmdline_verbosity,
|  | int | daemonize,
|  | int | info
| ) |  |

Start engine.

Parameters

  [in] | cfgfile | configuration file
  [in] | cmdline_verbosity | how many -v on the command line
  [in] | daemonize | to run as daemon or not
  [in] | info | print info and exit
  [in] | single_run | run once

Returns
  0 if successful, 1 on error

Start engine.

Definition at line 768 of file engine.c.

## engine_update_zones()

void engine_update_zones | ( | engine_type * | engine,
|  | ods_status | zl_changed
| ) |  |

Update zones.

Parameters

  [in] | engine | engine
  [in] | zl_changed | whether the zonelist has changed or not

Update zones.

Definition at line 617 of file engine.c.

References engine_struct::zonelist, and zonelist_struct::zones.

## engine_wakeup_workers()

void engine_wakeup_workers | ( | engine_type * | engine | ) |

Wake up workers.

Parameters

  [in] | engine | engine

Wake up all workers.

Definition at line 290 of file engine.c.

References engine_struct::config.