#include "config.h"
#include <signal.h>
#include "daemon/cfg.h"
#include "cmdhandler.h"
#include "scheduler/task.h"
#include "scheduler/schedule.h"
#include "db/db_configuration.h"
#include "db/db_connection.h"
Go to the source code of this file.
◆ engine_type
The engine.
Definition at line 38 of file engine.h.
◆ start_cb_t
◆ engine_alloc()
◆ engine_dealloc()
◆ engine_init()
| void engine_init |
( |
engine_type * | engine, |
|
|
int | daemonize ) |
|
extern |
◆ engine_run()
Run the engine after setting it up using engine_setup. When this function returns the runloop has finished and the engine is ready to stop.
- Parameters
-
| [in] | engine | the engine returned from engine_start |
| [in] | single_run | run once |
- Returns
- 0 if terminated normally, 1 on unrecoverable error.
Run engine, run!.
Definition at line 643 of file engine.c.
References engine_start_workers(), and engine_stop_workers().
Referenced by main().
◆ engine_setup()
| ods_status engine_setup |
( |
void | | ) |
|
|
extern |
Setup the engine started by engine_create
- Parameters
-
| [in] | engine | the engine returned from engine_start |
| [in] | commands | NULL terminated list of command functions for the engine that the command handler can run. |
| [in] | help | NULL terminated list of help functions that print help for the command to a socket. |
Set up engine and return the setup status.
Definition at line 432 of file engine.c.
References db_connection_free(), enforcercommands, and get_database_connection().
Referenced by main().
◆ engine_start_workers()
◆ engine_stop()
Stop the engine after engine_runloop returns.
- Parameters
-
◆ engine_stop_workers()
◆ engine_teardown()
Clean up engine.
- Parameters
-
Clean up engine.
Definition at line 584 of file engine.c.
Referenced by main().
◆ engine_wakeup_workers()
◆ get_database_connection()