X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=onak-conf.h;h=7c15cbb02583e7d6e2284e04ea7911979f561a14;hb=b49205ffcd195319303e0dd3a23aacda7a7c12ce;hp=0d937c23d3578db380935a3dc6f322074718add3;hpb=2458360e75aa46091f60c16e041c07bffe2edefb;p=onak.git diff --git a/onak-conf.h b/onak-conf.h index 0d937c2..7c15cbb 100644 --- a/onak-conf.h +++ b/onak-conf.h @@ -89,6 +89,16 @@ struct onak_config { /** Should we verify signature hashes match? */ bool check_sighash; + + /* + * Options used by the email handling script. + * None of the C code uses this information, but we should be able + * to parse it. + */ + /** Location of the onak binary, so the mail script can find it. */ + char *bin_dir; + /** Where incoming mail gets queue, one file per mail. */ + char *mail_dir; }; /** @@ -105,6 +115,14 @@ extern struct onak_config config; */ void readconfig(const char *configfile); +/** + * @brief write the onak config. + * @param configfile the config file to write to. + * + * Write out the config file. If config file is NULL write it to STDOUT. + */ +void writeconfig(const char *configfile); + /** * @brief clean up the config when we're shutting down. */