aboutsummaryrefslogtreecommitdiff
path: root/brep/services.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-30 19:20:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-06 20:34:25 +0200
commit8e866579cb459c5104c532d5e41d562d45236ea5 (patch)
treef72548e3499bfdc50bc1183ec014d14e6b53918c /brep/services.cxx
parentc188831c50456754de79aadc26df74149cb00422 (diff)
Implement loader
Diffstat (limited to 'brep/services.cxx')
-rw-r--r--brep/services.cxx21
1 files changed, 21 insertions, 0 deletions
diff --git a/brep/services.cxx b/brep/services.cxx
new file mode 100644
index 0000000..86b27b7
--- /dev/null
+++ b/brep/services.cxx
@@ -0,0 +1,21 @@
+// file : services.cxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#include <brep/view>
+#include <brep/search>
+
+#include <web/apache/service>
+
+using namespace brep;
+using web::apache::service;
+
+static search search_mod;
+service AP_MODULE_DECLARE_DATA search_srv ("search",
+ search_mod,
+ {"db-host", "db-port", "conf"});
+
+static view view_mod;
+service AP_MODULE_DECLARE_DATA view_srv ("view",
+ view_mod,
+ {"db-host", "db-port", "conf"});