X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/a7abb429fd7d05cc3a680796d3e0644b360cd79e..c9aded9f1c5c6eea294bf85e5e34efb9f52138c6:/server/tripe.h diff --git a/server/tripe.h b/server/tripe.h index a2fdd006..bd70bb84 100644 --- a/server/tripe.h +++ b/server/tripe.h @@ -1855,6 +1855,31 @@ extern void iv_addreason(void); extern void iv_rmreason(void); +/*----- The main loop -----------------------------------------------------*/ + +/* --- @lp_init@ --- * + * + * Arguments: --- + * + * Returns: --- + * + * Use: Initializes the main loop. Most importantly, this sets up + * the select multiplexor that everything else hooks onto. + */ + +extern void lp_init(void); + +/* --- @lp_run@ --- * + * + * Arguments: --- + * + * Returns: Zero on successful termination; @-1@ if things went wrong. + * + * Use: Cranks the main loop until it should be cranked no more. + */ + +extern int lp_run(void); + /*----- Tunnel drivers ----------------------------------------------------*/ #ifdef TUN_LINUX