aboutsummaryrefslogtreecommitdiff
path: root/mod/build.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'mod/build.hxx')
-rw-r--r--mod/build.hxx20
1 files changed, 19 insertions, 1 deletions
diff --git a/mod/build.hxx b/mod/build.hxx
index 7ae7f95..07e4411 100644
--- a/mod/build.hxx
+++ b/mod/build.hxx
@@ -1,14 +1,19 @@
// file : mod/build.hxx -*- C++ -*-
-// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
#ifndef MOD_BUILD_HXX
#define MOD_BUILD_HXX
+#include <odb/forward.hxx> // odb::core::connection_ptr
+
#include <libbrep/types.hxx>
#include <libbrep/utility.hxx>
#include <libbrep/build.hxx>
+#include <libbrep/build-package.hxx>
+
+#include <mod/diagnostics.hxx>
+#include <mod/module-options.hxx>
// Various package build-related utilities.
//
@@ -26,6 +31,19 @@ namespace brep
//
string
build_force_url (const string& host, const dir_path& root, const build&);
+
+ // Send the notification email for the specified package configuration
+ // build. The build is expected to be in the built state.
+ //
+ void
+ send_notification_email (const options::build_email_notification&,
+ const odb::core::connection_ptr&,
+ const build&,
+ const build_package&,
+ const build_package_config&,
+ const string& what, // build, rebuild, etc.
+ const basic_mark& error,
+ const basic_mark* trace);
}
#endif // MOD_BUILD_HXX