X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/cdabf44d4bf72678b402c0fd7dac394eb36513da..2c6ee627861951ee978793cca4fd14638c34976f:/server/disorderd.c diff --git a/server/disorderd.c b/server/disorderd.c index 2000a2f..3e1ab44 100644 --- a/server/disorderd.c +++ b/server/disorderd.c @@ -80,8 +80,12 @@ static int handle_sigterm(ev_source attribute((unused)) *ev_, /* periodic actions --------------------------------------------------------- */ +/** @brief A job executed periodically by the server */ struct periodic_data { + /** @brief Callback to process job */ void (*callback)(ev_source *); + + /** @brief Period of job in seconds */ int period; };