Improved code sharing.

we now have a base url handler which handles listing, adding and editing
any objects including permission management.
This commit is contained in:
Martin Preuss
2023-08-10 18:03:24 +02:00
parent 17889fd30b
commit ec745f5cc9
7 changed files with 805 additions and 423 deletions

View File

@@ -0,0 +1,27 @@
/****************************************************************************
* This file is part of the project AqHome.
* AqHome (c) by 2023 Martin Preuss, all rights reserved.
*
* The license for this file can be found in the file COPYING which you
* should have received along with this file.
****************************************************************************/
#ifndef AQHOME_STORAGE_U_BASE_H
#define AQHOME_STORAGE_U_BASE_H
#include "aqhome/http/urlhandler.h"
GWEN_MSG *AQH_BaseHttpUrlHandler_CreateResponseForErrorCode(AQH_HTTP_URLHANDLER *uh,
AQH_HTTP_REQUEST *rq,
int rv,
AQH_HTTP_URLHANDLER_WRITEPAGE_CB cb,
GWEN_DB_NODE *db);
#endif