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
35extern "C" int init(nawa::AppInit& appInit);
36extern "C" int handleRequest(nawa::Connection& connection);
37
38#endif //NAWA_APPLICATION_H
Structure passed to the init function of nawa apps.
#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
Response object to be passed back to NAWA and accessor to the request.