summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2015-05-28 21:16:26 +0200
committerJoel Klinghed <the_jk@yahoo.com>2015-05-28 21:16:26 +0200
commitb5a0e93f400d75ddef67c21c35878cfafee56e1a (patch)
tree73dd35971de66cd1d09d303665bd5a2189396361 /src
parent720295848ea0d909cb39c004cbeaf1055fa7cffc (diff)
Small start for signup
Diffstat (limited to 'src')
-rw-r--r--src/.gitignore1
-rw-r--r--src/Makefile.am4
-rw-r--r--src/signup.cc19
3 files changed, 24 insertions, 0 deletions
diff --git a/src/.gitignore b/src/.gitignore
index 246841d..896e388 100644
--- a/src/.gitignore
+++ b/src/.gitignore
@@ -4,3 +4,4 @@
/stamp-h1
/libcgi.la
/libdb.la
+/signup
diff --git a/src/Makefile.am b/src/Makefile.am
index aaab9f9..5a779fa 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,8 +2,12 @@ MAINTAINERCLEANFILES = Makefile.in
AM_CPPFLAGS = @DEFINES@
+bin_PROGRAMS = signup
noinst_LTLIBRARIES = libdb.la libcgi.la
+signup_SOURCES = signup.cc common.hh cgi.hh db.hh
+signup_LDADD = libdb.la libcgi.la
+
libcgi_la_SOURCES = cgi.hh common.hh cgi.cc \
query_parser.hh query_parser.cc \
header_parser.hh header_parser.cc \
diff --git a/src/signup.cc b/src/signup.cc
new file mode 100644
index 0000000..a3eafd4
--- /dev/null
+++ b/src/signup.cc
@@ -0,0 +1,19 @@
+#include "common.hh"
+
+#include "cgi.hh"
+#include "db.hh"
+
+using namespace stuff;
+
+namespace {
+
+bool handle_request(CGI* cgi) {
+
+ return false;
+}
+
+} // namespace
+
+int main() {
+ return CGI::run(handle_request);
+}