summaryrefslogtreecommitdiff
path: root/mythfs/service/embed.cpp.m4
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-24 04:58:10 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-24 04:58:10 +0000
commite16e5330de6738dbf76864dba0bbebafe108a614 (patch)
treeee282227211bdea2abc4837115d3b22b1cfd49d7 /mythfs/service/embed.cpp.m4
parentInitial WIP commit of MythFS (diff)
downloadmythfs-e16e5330de6738dbf76864dba0bbebafe108a614.tar.bz2
mythfs-e16e5330de6738dbf76864dba0bbebafe108a614.tar.xz
mythfs-e16e5330de6738dbf76864dba0bbebafe108a614.zip
Add service and models for reading from database
Diffstat (limited to 'mythfs/service/embed.cpp.m4')
-rw-r--r--mythfs/service/embed.cpp.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/mythfs/service/embed.cpp.m4 b/mythfs/service/embed.cpp.m4
new file mode 100644
index 0000000..43901dd
--- /dev/null
+++ b/mythfs/service/embed.cpp.m4
@@ -0,0 +1,12 @@
+define(`name', NAME)
+define(`incl', `#include "'NAME`.h"')
+define(`inclhex', `#include "'NAME`.hex"')
+incl
+
+namespace sql {
+ const std::string name::sql({
+ inclhex
+ , 0x00});
+ const std::size_t name::hash(std::hash<std::string>()(sql));
+}
+