aqhome: more work on http service.
This commit is contained in:
48
aqhome/http/httpservice_conf.h
Normal file
48
aqhome/http/httpservice_conf.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/****************************************************************************
|
||||
* 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 AQH_HTTP_SERVICE_CONF_H
|
||||
#define AQH_HTTP_SERVICE_CONF_H
|
||||
|
||||
|
||||
|
||||
#include "aqhome/service/service.h"
|
||||
|
||||
#include <gwenhywfar/db.h>
|
||||
#include <gwenhywfar/buffer.h>
|
||||
#include <gwenhywfar/msg.h>
|
||||
#include <gwenhywfar/url.h>
|
||||
|
||||
|
||||
int AQH_HttpService_LoadConfig(AQH_SERVICE *sv);
|
||||
int AQH_HttpService_SaveConfig(const AQH_SERVICE *sv);
|
||||
|
||||
AQH_MODULE *AQH_HttpService_GetModule(AQH_SERVICE *sv, const char *modName);
|
||||
AQH_USER *AQH_HttpService_GetUser(AQH_SERVICE *sv, const char *alias);
|
||||
AQH_SESSION *AQH_HttpService_GetSession(AQH_SERVICE *sv, const char *sessionUid);
|
||||
|
||||
|
||||
AQH_MODULE *AQH_HttpService_LoadModule(const AQH_SERVICE *sv, const char *modName);
|
||||
int AQH_HttpService_SaveModule(const AQH_SERVICE *sv, const AQH_MODULE *m);
|
||||
int AQH_HttpService_AddModule(AQH_SERVICE *sv, AQH_MODULE *m);
|
||||
|
||||
AQH_USER *AQH_HttpService_LoadUser(const AQH_SERVICE *sv, const char *userAlias);
|
||||
int AQH_HttpService_SaveUser(const AQH_SERVICE *sv, const AQH_USER *user);
|
||||
int AQH_HttpService_AddUser(AQH_SERVICE *sv, AQH_USER *user);
|
||||
int AQH_HttpService_DelUser(AQH_SERVICE *sv, AQH_USER *user);
|
||||
|
||||
AQH_SESSION *AQH_HttpService_LoadSession(const AQH_SERVICE *sv, const char *sessionUid);
|
||||
int AQH_HttpService_SaveSession(const AQH_SERVICE *sv, const AQH_SESSION *session);
|
||||
int AQH_HttpService_AddSession(AQH_SERVICE *sv, AQH_SESSION *session);
|
||||
int AQH_HttpService_DelSession(AQH_SERVICE *sv, AQH_SESSION *session);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user