summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authoreportnov <eportnov@ibs.ru>2022-09-09 11:10:14 +0300
committereportnov <eportnov@ibs.ru>2022-09-09 12:41:59 +0300
commit9fa4addff6f90a8b5697a594e034f5517d64dd25 (patch)
treeb429545eba770ea5aadd030b40f62ca8ab5b208a /src/main.cpp
downloadobmc-sila-smtp-9fa4addff6f90a8b5697a594e034f5517d64dd25.tar.xz
first comit
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
new file mode 100644
index 0000000..ba2848d
--- /dev/null
+++ b/src/main.cpp
@@ -0,0 +1,14 @@
+#include <sdbusplus/asio/connection.hpp>
+
+#include "smtp_service.hpp"
+
+int main()
+{
+ boost::asio::io_service io_context;
+
+ auto connection = std::make_shared<sdbusplus::asio::connection>( io_context );
+ smtp::SmtpService smtp{ connection };
+
+ io_context.run();
+ return 0;
+}