|
unbound 0.1
|
Event service that replays a scenario. More...
Functions | |
| void | fake_event_init (struct replay_scenario *scen) |
| Initialise fake event services. | |
| void | fake_event_cleanup (void) |
| Deinit fake event services. | |
| void | fake_temp_file (const char *adj, const char *id, char *buf, size_t len) |
| Get filename to store temporary config stuff. | |
Event service that replays a scenario.
This implements the same exported symbols as the files: util/netevent.c services/listen_dnsport.c services/outside_network.c But these do not actually access the network or events, instead the scenario is played.
| void fake_event_init | ( | struct replay_scenario * | scen | ) |
Initialise fake event services.
The fake event services will automatically start when the main program calls netevent.h functions, such as comm_base_dispatch().
| scen | Set the scenario to use for upcoming event handling. |
References saved_scenario.
Referenced by main().
| void fake_temp_file | ( | const char * | adj, |
| const char * | id, | ||
| char * | buf, | ||
| size_t | len ) |
Get filename to store temporary config stuff.
The pid is added. in /tmp.
| adj | adjective, like "_cfg_", "_auto_" |
| id | identifier, like "example.com". |
| buf | where to store. |
| len | length of buf. |
Referenced by autotrust_check(), setup_config(), spool_auto_file(), spool_temp_file(), spool_temp_file_name(), and tempfile_check().