NAWA  0.8
Web Application Framework for C++
application.h
Go to the documentation of this file.
1 
7 /*
8  * Copyright (C) 2019-2021 Tobias Flaig.
9  *
10  * This file is part of nawa.
11  *
12  * nawa is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU Lesser General Public License,
14  * version 3, as published by the Free Software Foundation.
15  *
16  * nawa is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * along with nawa. If not, see <https://www.gnu.org/licenses/>.
23  */
24 
25 #ifndef NAWA_APPLICATION_H
26 #define NAWA_APPLICATION_H
27 #define NAWA_VERSION_MAJOR 0
28 #define NAWA_VERSION_MINOR 8
29 
30 #include <nawa/AppInit.h>
32 
33 extern "C" const int nawa_version_major = NAWA_VERSION_MAJOR;
34 extern "C" const int nawa_version_minor = NAWA_VERSION_MINOR;
35 extern "C" int init(nawa::AppInit& appInit);
36 extern "C" int handleRequest(nawa::Connection& connection);
37 
38 #endif //NAWA_APPLICATION_H
Structure passed to the init function of nawa apps.
Response object to be passed back to NAWA and accessor to the request.
#define NAWA_VERSION_MAJOR
Definition: application.h:27
int init(nawa::AppInit &appInit)
Definition: contactform.cpp:40
const int nawa_version_major
Definition: application.h:33
int handleRequest(nawa::Connection &connection)
Definition: contactform.cpp:47
#define NAWA_VERSION_MINOR
Definition: application.h:28
const int nawa_version_minor
Definition: application.h:34