From b5a0e93f400d75ddef67c21c35878cfafee56e1a Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Thu, 28 May 2015 21:16:26 +0200 Subject: Small start for signup --- src/.gitignore | 1 + src/Makefile.am | 4 ++++ src/signup.cc | 19 +++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 src/signup.cc 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); +} -- cgit v1.2.3-70-g09d2