NAWA 0.9
Web Application Framework for C++
application.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019-2022 Tobias Flaig.
3 *
4 * This file is part of nawa.
5 *
6 * nawa is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License,
8 * version 3, as published by the Free Software Foundation.
9 *
10 * nawa is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with nawa. If not, see <https://www.gnu.org/licenses/>.
17 */
18
25#ifndef NAWA_APPLICATION_H
26#define NAWA_APPLICATION_H
27#define NAWA_VERSION_MAJOR 0
28#define NAWA_VERSION_MINOR 9
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.
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