]> git.stg.codes - stg.git/blob - projects/sgconf/makeproto.h
Fix sizeof.
[stg.git] / projects / sgconf / makeproto.h
1 #pragma once
2
3 #include "config.h"
4
5 #include "stg/servconf.h"
6
7 namespace SGCONF
8 {
9
10 inline
11 STG::ServConf makeProto(const CONFIG& config)
12 {
13     return STG::ServConf(config.server.value(),
14                          config.port.value(),
15                          config.localAddress.value(),
16                          config.localPort.value(),
17                          config.userName.value(),
18                          config.userPass.value());
19 }
20
21 }