X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/c02633d77cb05a5deb05440d77b12ccc5bc19b85..a91e9542b384905187890f161d4da5396996fcfd:/projects/sgconf/makeproto.h diff --git a/projects/sgconf/makeproto.h b/projects/sgconf/makeproto.h new file mode 100644 index 00000000..82100f46 --- /dev/null +++ b/projects/sgconf/makeproto.h @@ -0,0 +1,21 @@ +#pragma once + +#include "config.h" + +#include "stg/servconf.h" + +namespace SGCONF +{ + +inline +STG::ServConf makeProto(const CONFIG& config) +{ + return STG::ServConf(config.server.value(), + config.port.value(), + config.localAddress.value(), + config.localPort.value(), + config.userName.value(), + config.userPass.value()); +} + +}