blob: 5833ba511124f2fd0acd25341fe7a4f974a44396 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <sdbusplus/asio/connection.hpp>
#include "service/smtp.hpp"
#include "management/builder/mail.hpp"
#include "management/builder/settings.hpp"
int main()
{
boost::asio::io_service io_context;
auto connection = std::make_shared<sdbusplus::asio::connection>( io_context );
auto settings_manager = smtp::manage::builder::Settings{}.Build();
auto mail_manager = smtp::manage::builder::Mail{}.Build();
smtp::service::Smtp smtp{ connection, settings_manager, mail_manager };
io_context.run();
return 0;
}
|