summaryrefslogtreecommitdiff
path: root/src/service/smtp.cpp
diff options
context:
space:
mode:
authorclaiff <claiff@mail.ru>2022-09-20 16:05:35 +0300
committerclaiff <claiff@mail.ru>2022-09-20 16:05:35 +0300
commita282ae6418c85db1aae5a2823dd37d56e56e5249 (patch)
tree00fb2677007f87b5572d088d0421e3075291f8ac /src/service/smtp.cpp
parent7485f26f35c9cfc1489a2e425fee57a2b51059a9 (diff)
downloadobmc-sila-smtp-a282ae6418c85db1aae5a2823dd37d56e56e5249.tar.xz
temp
Diffstat (limited to 'src/service/smtp.cpp')
-rw-r--r--src/service/smtp.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/service/smtp.cpp b/src/service/smtp.cpp
index 702de2d..7b1ca70 100644
--- a/src/service/smtp.cpp
+++ b/src/service/smtp.cpp
@@ -11,7 +11,7 @@ namespace smtp::service
:mSettingsStorage(settings), mMailTo(mail_to)
{
CreateService( connection );
- CreateMessagerInterface( connection );
+ CreateMessengerInterface( connection );
CreateSettingsManagerInterface( connection );
CreateMailManagerInterface( connection );
}
@@ -27,17 +27,17 @@ namespace smtp::service
connection->request_name( SMTP_BUS_NAME );
}
- void Smtp::CreateMessagerInterface( ConnectionPtr connection )
+ void Smtp::CreateMessengerInterface( ConnectionPtr connection )
{
static constexpr char SMTP_OBJECT_NAME[] = "/xyz/openbmc_project/SMTP/Messenger";
static constexpr char SMTP_INTERFACE_NAME[] = "xyz.openbmc_project.Messenger";
mObjectServer = std::make_shared<sdbusplus::asio::object_server>( connection );
- mMessagerInterface = mObjectServer->add_interface( SMTP_OBJECT_NAME, SMTP_INTERFACE_NAME );
+ mMessengerInterface = mObjectServer->add_interface( SMTP_OBJECT_NAME, SMTP_INTERFACE_NAME );
- AddMessagerMethods();
+ AddMessengerMethods();
- mMessagerInterface->initialize();
+ mMessengerInterface->initialize();
}
void Smtp::CreateSettingsManagerInterface(ConnectionPtr connection)
@@ -66,13 +66,13 @@ namespace smtp::service
mManagerMailInterface->initialize();
}
- void Smtp::AddMessagerMethods()
+ void Smtp::AddMessengerMethods()
{
static constexpr char SMTP_SEND_MESSAGE_METHOD_NAME[] = "SendMail";
- mMessagerInterface->register_method(SMTP_SEND_MESSAGE_METHOD_NAME, [this]( std::string const& mail_from,
- std::string const& theme,
- std::string const& text )
+ mMessengerInterface->register_method( SMTP_SEND_MESSAGE_METHOD_NAME, [this]( std::string const& mail_from,
+ std::string const& theme,
+ std::string const& text )
{ return message::Sender{ mSettingsStorage, mMailTo }.Send( mail_from, theme, text );});
}